문제

I need to distribute some code that was written in Python for Windows. Unfortunately, this code has many dependencies, and I'd like to make the installation as user-friendly as possible (read: doable even for people who don't even know how to use the command line). Is there a way I can build an installer which at he same time installs Python and the uses pip/easy_install to install the required modules as well? Can I package all this in a single executable, or do I need at least a second installation script? Thanks a lot.

도움이 되었습니까?

해결책

If you just want an installer/binary, check out py2exe

http://www.py2exe.org/

There are a few known problems if your code includes certain resources but there is help for ensuring the includes worked http://www.py2exe.org/index.cgi/WorkingWithVariousPackagesAndModules

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top