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?

1
  • 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. Commented Dec 20, 2013 at 17:05

1 Answer 1

2

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.