如何安装 PyInstaller? [英] How to install PyInstaller?
本文介绍了如何安装 PyInstaller?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
(我使用的是 Windows.)
(I'm on Windows.)
我想使用 PyInstaller.我总是可以用 pyinstaller.py [args]
创建 bin 文件.
I want to use PyInstaller. I could always create bin files with pyinstaller.py [args]
.
- 它不是带有
__init__.py
文件的包, - 它没有
setup.py
- 并且无法创建文件夹,将其放在我的 PYTHONPATH 中,将
pyinstaller[files]
放在该文件夹中,然后调用python pyinstallerpyinstaller.py
.
- It's not a package with an
__init__.py
file, - it has no
setup.py
- and it doesn't work to create a folder, put it in my PYTHONPATH, put
pyinstaller[files]
in that folder and then make a call topython pyinstallerpyinstaller.py
.
pyinstaller.org 仅 用 Configure.py
告诉我一些东西.
pyinstaller.org only tells me something with Configure.py
.
所以现在我不知道如何安装 PyInstaller 这样我就不必使用绝对路径了.你有什么想法吗?
So now I'm out of ideas how to install PyInstaller so that I don't have to work with absolute paths. Do you have any ideas?
推荐答案
安装 PyInstaller:
To install PyInstaller:
- 转到您的命令提示符(开始 -> 运行 -> cmd)
- 输入以下命令
cd c:python27scripts
按 enter,这应该是您的 pip.exe 文件所在的位置. - 进入此目录后,输入
pip install pyinstaller
按 Enter 键
- Go to your command prompt (Start -> Run -> cmd)
- type the following command
cd c:python27scripts
press enter, this should be where your pip.exe file is located. - Once you are in this directory type
pip install pyinstaller
press enter
消息应为Successfully installed pyinstaller
.
这篇关于如何安装 PyInstaller?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文