【问题标题】:How do I correctly install pyinstaller? (what am I doing wrong?)如何正确安装 pyinstaller? (我究竟做错了什么?)
【发布时间】:2013-09-07 11:35:33
【问题描述】:

我正在尝试安装 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 输出

/home/my_name/venv/base/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin: /bin:/usr/games:/path/to/email_and_excel

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

谢谢!

【问题讨论】:

    标签: python pip pyinstaller


    【解决方案1】:

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

    RTFM可以找到here

    【讨论】:

    • 但是它说“setup.py 还不应该工作。请使用 PyInstaller 而不安装。”当我尝试使用 setup.py 安装它时,它说了同样的话。
    • 您对 DONT RUN SETUP 有哪些不了解的地方?不要尝试安装,只需将其复制到您可以找到的地方,然后运行它!
    猜你喜欢
    • 2013-08-06
    • 1970-01-01
    • 2016-07-18
    • 2019-12-23
    • 1970-01-01
    • 2014-06-15
    • 1970-01-01
    • 1970-01-01
    • 2015-06-30
    相关资源
    最近更新 更多