我发现很多安装的python库在Scripts目录下都有xxx.exe文件,比如scrapy.exe、pip.exe、virtualenv.exe等。他们是怎么做到的?我找不到相关信息,请指导我,非常感谢。顺便说一句,Windows系统中安装了python。
最佳答案
您可以使用PyInstaller 。在 Windows 上,它可以编译为单个 .exe
文件。
PyInstaller bundles a Python application and all its dependencies into a single package. The user can run the packaged app without installing a Python interpreter or any modules. PyInstaller supports Python 2.7 and Python 3.4+, and correctly bundles the major Python packages such as numpy, PyQt, Django, wxPython, and others.
关于python 如何在Windows系统中构建scrapy.exe、pip.exe、virtualenv.exe等exe文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53773213/