pip提示报错:
Traceback (most recent call last):
File "/usr/bin/pip", line 7, in
from pip._internal import main
File "/usr/lib/python2.6/site-packages/pip/_internal/init.py", line 42, in
from pip._internal import cmdoptions
File "/usr/lib/python2.6/site-packages/pip/_internal/cmdoptions.py", line 16, in
from pip._internal.index import (
File "/usr/lib/python2.6/site-packages/pip/_internal/index.py", line 536
{str(c.version) for c in all_candidates},
^
SyntaxError: invalid syntax
修复方法:
wget https://pypi.python.org/packages/11/b6/
abcb525026a4be042b486df43905d6893fb04f05aac21c32c638e939e447/
pip-9.0.1.tar.gz
tar -xzvf pip-9.0.1.tar.gz
cd pip-9.0.1
python setup.py install