python - Upgrading to latest pip caused ValueError -
the latest upgrade pip
(using python 3.5) causes following error occur pip
command:
traceback (most recent call last): file "/library/frameworks/python.framework/versions/3.5/bin/pip3.5", line 7, in <module> pip import main file "/library/frameworks/python.framework/versions/3.5/lib/python3.5/site-packages/pip/__init__.py", line 15, in <module> 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> pip.index import link file "/library/frameworks/python.framework/versions/3.5/lib/python3.5/site-packages/pip/index.py", line 29, in <module> 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> 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 unpack (expected 3, got 2)
i'm unable upgrade or uninstall. caused , how can fixed?
i went ahead , edited
/library/frameworks/python.framework/versions/3.5/lib/python3.5/site-packages/pip/pep425tags.py
at line 120.
removed micro
value, , works again. not sure happened.
Comments
Post a Comment