Command “python setup.py egg_info“ failed with error code 1 in /tmp/pip-build-BiRqgr/decorator/
pip install下载工具时报错,出现:Complete output from command python setup.py egg_info:Traceback (most recent call last):File "<string>", line 1, in <module>File "/tmp/pip-build-BiRqgr/decorator/setu
·
pip install下载工具时报错,出现:
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-BiRqgr/decorator/setup.py", line 4, in <module>
exec(open('src/decorator.py').read(), dic) # extract the __version__
File "<string>", line 162
print('Error in generated code:', file=sys.stderr)
^
SyntaxError: invalid syntax
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-BiRqgr/decorator/
解决步骤:
sudo apt-get purge python-pip
sudo apt-get install python-pip
sudo pip3 install --upgrade pip
#如果pip3无效则需要先安装python3和pip3
sudo pip install --upgrade setuptools
pip install jenkins
重新安装decorator:
sudo apt install --reinstall python*-decorator
更多推荐
所有评论(0)