![](/img/trans.png)
[英]pip install error: ModuleNotFoundError No module named '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.