pip install --upgrade distribute
抛出以下错误。
Downloading/unpacking distribute from http://pypi.python.org/packages/sourc
e/d/distribute/distribute-0.6.25.tar.gz#md5=a690874b9964d958a3200485eb827b1
d
Running setup.py egg_info for package distribute
Traceback (most recent call last):
File "<string>", line 3, in <module>
File "setuptools\__init__.py", line 2, in <module>
from setuptools.extension import Extension, Library
File "setuptools\extension.py", line 2, in <module>
from setuptools.dist import _get_unpatched
File "setuptools\dist.py", line 103
except ValueError, e:
^
SyntaxError: invalid syntax
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 3, in <module>
File "setuptools\__init__.py", line 2, in <module>
from setuptools.extension import Extension, Library
File "setuptools\extension.py", line 2, in <module>
from setuptools.dist import _get_unpatched
File "setuptools\dist.py", line 103
except ValueError, e:
^
SyntaxError: invalid syntax
答案 0 :(得分:1)