如何正确安装pyinstaller? (我究竟做错了什么?)

时间:2013-09-04 05:03:21

标签: python pip pyinstaller

我正在尝试安装pyinstaller(在Ubuntu上)。我使用了pip install pyinstaller,我觉得这很好。输出

Downloading/unpacking pyinstaller
  Running setup.py egg_info for package pyinstaller

    setup.py is not yet supposed to work. Please Use PyInstaller without installation.

    Complete output from command python setup.py egg_info:


setup.py is not yet supposed to work. Please Use PyInstaller without installation.



----------------------------------------
Command python setup.py egg_info failed with error code 1 in /home/alex/venv/base/build/pyinstaller
Storing complete log in /home/alex/.pip/pip.log

然后我运行了“pip install --upgrade pyinstaller”输出

Downloading/unpacking pyinstaller
  Running setup.py egg_info for package pyinstaller

    setup.py is not yet supposed to work. Please Use PyInstaller without installation.

    Complete output from command python setup.py egg_info:


setup.py is not yet supposed to work. Please Use PyInstaller without installation.



----------------------------------------
Command python setup.py egg_info failed with error code 1 in /home/alex/venv/base/build/pyinstaller
Storing complete log in /home/alex/.pip/pip.log

但是当我尝试验证安装时,如手册所示,使用“pyinstaller --version”,我得到了:

pyinstaller: command not found

手册说如果发生这种情况,我应该检查我的目录/ usr / bin /中是否有正确的执行路径,我认为我这样做了。 Echo $ PATH输出

/家庭/ MY_NAME / VENV /碱/ bin中:/ usr / lib中/ lightdm / lightdm:在/ usr / local / sbin中:在/ usr / local / bin中:/ usr / sbin目录:在/ usr / bin中:/ sbin目录: / bin中:在/ usr /游戏:/路径/到/ email_and_excel

发生了什么,我应该如何正确安装pyinstaller?

谢谢!

1 个答案:

答案 0 :(得分:1)

正如错误消息显示pyinstaller “安装” - 只需download it,解压缩并 使用您放置它的路径运行 或将其添加到您的路径中。

RTFM找到here