سؤال

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?

هل كانت مفيدة؟

المحلول

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

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top