我試圖安裝任何包PIP3錯誤代碼1,但我總是得到錯誤: 命令「蟒蛇setup.py egg_info」失敗,錯誤代碼1命令「蟒蛇setup.py egg_info」失敗,在'
我已經安裝了python 2.7和python 3.6,並且使用python 2.7可以很好地工作,但是pip3總是返回上面的錯誤。
我試過更新setuptools和pip版本,但沒有任何工作。有誰知道如何解決這個問題?我注意到的一件事是,pip3列表只返回3個包,而pip列表返回超過20個。我不確定這是否有用的信息。
錯誤消息:
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/setuptools/dist.py", line 522, in fetch_build_egg
return cmd.easy_install(req)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 666, in easy_install
raise DistutilsError(msg)
distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('incremental>=16.10.1')
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/zy/q9tbvfbd2_lgq7fffv2pxm6w0000gn/T/pip-build-guhz6ox4/Twisted/
我們需要看到導致「'python setup.py egg_info」的輸出行失敗,並顯示錯誤代碼1'以便了解實際問題是什麼。 – jwodder
可能的重複https://stackoverflow.com/questions/35991403/python-pip-install-gives-command-python-setup-py-egg-info-failed-with-error-c – FabienP