当尝试通过pip安装模块时,它说我需要安装setuptools 18.5或更高版本。所以我做了一个“pip install -U pip”它将我的pip版本升级到10.0.1。然后,当我尝试安装pywinrm模块时,它会因语法错误而中断。 事实上,它在升级到10.0.1时会破坏所有Pip命令。我目前安装了7.1.0和Python 2.6.6
我试试这个:
pip install pywinrm
Traceback (most recent call last):
File "/usr/bin/pip", line 7, in <module>
from pip._internal import main
File "/usr/lib/python2.6/site-packages/pip/_internal/__init__.py", line 42, in <module>
from pip._internal import cmdoptions
File "/usr/lib/python2.6/site-packages/pip/_internal/cmdoptions.py", line 16, in <module>
from pip._internal.index import (
File "/usr/lib/python2.6/site-packages/pip/_internal/index.py", line 526
{str(c.version) for c in all_candidates},
^â
SyntaxError: invalid syntax