运行pip显示SyntaxError: invalid syntax

C:\Users\Administrator>pip list
Traceback (most recent call last):
File "C:\Python32\Scripts\pip-script.py", line 9, in
load_entry_point('pip==9.0.1', 'console_scripts', 'pip')()
File "C:\Python32\lib\site-packages\distribute-0.6.27-py3.2.egg\pkg_resources.py", line 337, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "C:\Python32\lib\site-packages\distribute-0.6.27-py3.2.egg\pkg_resources.py", line 2308, in load_entry_point
return ep.load()
File "C:\Python32\lib\site-packages\distribute-0.6.27-py3.2.egg\pkg_resources.py", line 2018, in load
entry = import(self.module_name, globals(),globals(), ['__name__'])
File "C:\Python32\lib\site-packages\pip-9.0.1-py3.2.egg\pip__init__.py", line 21, in
from pip._vendor.requests.packages.urllib3.exceptions import DependencyWarning
File "C:\Python32\lib\site-packages\pip-9.0.1-py3.2.egg\pip_vendor\requests__init__.py", line 66, in
from .models import Request, Response, PreparedRequest
File "C:\Python32\lib\site-packages\pip-9.0.1-py3.2.egg\pip_vendor\requests\models.py", line 856
http_error_msg = u'%s Client Error: %s for url: %s' % (self.status_code, reason, self.url)
^
SyntaxError: invalid syntax

1个回答

pip有没有安装好。用其他命令试试有没有问题。

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐