2016-01-21 28 views
0

的最新升級pip(使用Python 3.5)導致以下錯誤發生任何pip命令:升級到最新的PIP導致ValueError異常

Traceback (most recent call last): 
    File "/Library/Frameworks/Python.framework/Versions/3.5/bin/pip3.5", line 7, in <module> 
    from pip import main 
    File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pip/__init__.py", line 15, in <module> 
    from pip.vcs import git, mercurial, subversion, bazaar # noqa 
    File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pip/vcs/subversion.py", line 9, in <module> 
    from pip.index import Link 
    File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pip/index.py", line 29, in <module> 
    from pip.wheel import Wheel, wheel_ext 
    File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pip/wheel.py", line 32, in <module> 
    from pip import pep425tags 
    File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pip/pep425tags.py", line 214, in <module> 
    supported_tags = get_supported() 
    File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pip/pep425tags.py", line 162, in get_supported 
    arch = get_platform() 
    File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pip/pep425tags.py", line 119, in get_platform 
    major, minor, micro = release.split('.') 
ValueError: not enough values to unpack (expected 3, got 2) 

我甚至無法升級或卸載。是什麼引起了這個問題?如何解決?

回答

0

我繼續和編輯

/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pip/pep425tags.py 

在線路120

刪除了micro價值,現在它工作一次。不知道發生了什麼事。

相關問題