如何安装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 pyinstaller\pyinstaller.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 pyinstaller\pyinstaller.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:\python27\scripts
按下输入, 这应该是您的pip.exe文件所在的位置. - 在此目录中后,键入
pip install pyinstaller
并按Enter键
- Go to your command prompt (Start -> Run -> cmd)
- type the following command
cd c:\python27\scripts
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屋!
查看全文