1

I have a python script that imports two external modules, psycopg2 and boto. But I need to run this script on a lot of machines that don't have those libs installed.

Is there a way to put the code of these libs in the main script, so I can simply copy one file and everything works?

Ray
  • 2,472
  • 18
  • 22
Gonzo
  • 1,533
  • 16
  • 28
  • You should package your project, use eggs with setuptools to define dependencies. You could use fabric to deploy projects on every machines. If you don't want to host your own egg server, you can host your project into a "version control system" such as git and use fabric to pull new release on every machine and lunch the setup script. – Loïc Faure-Lacroix Dec 20 '13 at 17:05

1 Answers1

2

You can package your script by using either pyinstaller, py2exe or cx_freeze

Mike Pennington
  • 41,899
  • 19
  • 136
  • 174
K DawG
  • 13,287
  • 9
  • 35
  • 66