我在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。
有关如何解决此问题的任何想法?
答案 0 :(得分:0)
尝试
pip<py version> install pyinstaller --user
像
pip3.6 install pyinstaller