【发布时间】:2016-12-09 08:16:04
【问题描述】:
我尝试使用 pip 安装 pyinstaller(在 Ubuntu 16.0.4 上):
pip3 install pyinstaller
Collecting pyinstaller
Using cached PyInstaller-3.2.tar.gz
Collecting setuptools (from pyinstaller)
Using cached setuptools-25.1.3-py2.py3-none-any.whl
Building wheels for collected packages: pyinstaller
Running setup.py bdist_wheel for pyinstaller ... done
Stored in directory: /home/.../.cache/pip/wheels/fc/b3/10/006225b1c1baa34750a7b587d3598d47d18114c06b696a8e0e
Successfully built pyinstaller
Installing collected packages: setuptools, pyinstaller
Successfully installed pyinstaller setuptools-20.7.0
You are using pip version 8.1.1, however version 8.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
但是,如果我随后尝试调用 pyinstaller,则会收到错误 pyinstaller: command not found
当 pip 安装似乎成功时,为什么我无法运行 pyinstaller。
【问题讨论】:
-
你需要确保你的路径上有可执行文件
-
如果你运行
which pyinstaller会发生什么? -
没有找到
which pyinstaller -
看来你需要build a bootloader
-
也可以尝试通过模块调用:
python -m PyInstaller [...]
标签: python pip pyinstaller