为什么我无法安装PyInstaller?这个错误是什么意思?

时间:2019-04-02 20:19:55

标签: python pyinstaller

我正在尝试安装PyInstaller,并且在尝试使用pip时一直出现此错误。我正在运行Linux Mint 19.1。

elijah@elijah-HP-Laptop-15-bs1xx:~$ pip install pyinstaller
Collecting pyinstaller
  Using cached https://files.pythonhosted.org/packages/03/32/0e0de593f129bf1d1e77eed562496d154ef4460fd5cecfd78612ef39a0cc/PyInstaller-3.4.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
    ImportError: No module named setuptools

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-cMtlUT/pyinstaller/
elijah@elijah-HP-Laptop-15-bs1xx:~$

1 个答案:

答案 0 :(得分:0)

我认为您还没有setuptools。您可以尝试先安装它。

pip install setuptools

或者这是您的Linux。

sudo apt-get install -y python-setuptools