繁体   English   中英

Pip 安装:错误“没有名为‘setuptools’的模块”

[英]Pip install: Error “No module named 'setuptools' ”

我在 Windows 上安装 pyinstaller 时遇到问题。 使用命令:

C:\\Users\\Chris>py -m pip install pyinstaller --user

我不断收到错误:

Collecting pyinstaller Using cached PyInstaller-3.3.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 1, in <module> ModuleNotFoundError: No module named 'setuptools' ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in C:\\Users\\Chris\\Ap pData\\Local\\Temp\\pip-build-jvfkrm8f\\pyinstaller\\

我试过升级 setuptools

C:\\Users\\Chris>py -m pip install setuptools --upgrade Requirement already up-to-date: setuptools in c:\\users\\chris\\lib\\site-packages

我还尝试卸载并重新安装 setuptools。

我怎样才能解决这个问题?

尝试做

pip<py version> install pyinstaller --user

pip3.6 install pyinstaller

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM