开发者

Easiest & fastest way to export a Python program to run on another computer?

My friend does not have Python or the libraries needed installed on his mach开发者_如何学运维ine to run a program I have written. Is there a simple way to export my project (currently sitting in pydev on my x64 Windows 7 machine) so that he could run it on his machine? (He has OSX, but he could find Unix or Windows if needed.) My program uses several modules, and depends on networkx, wx, and matplotlib.

Feel free to move this to programming if overflow isn't appropriate.

Thanks!


You could use py2exe (Windows), cx_Freeze (should work on any platform that Python itself works on) or py2app (Mac OS X).


OS X actually already has python installed, albeit a somewhat old version. On OS X, a great solution to getting newer python Mac Ports package manager.

On Windows, python has an installer, and many of the most popular modules also have installers that respect the installed python. Alternatively, you can use Cygwin to install X-Windows versions of same.

On unix like platforms, well, you're already good to go. Python is preinstalled on just about every distro, and the package manager will have all of the popular modules ready to install, too.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜