python - 使用ez_setup.py安装setuptools出错
ringa_lee
ringa_lee 2017-04-17 14:54:40
0
2
490

Windows环境,Python2.7,

python ez_setup.py
Extracting in c:\users\admini~1\appdata\local\temp\tmpmnv_4n
Now working in c:\users\admini~1\appdata\local\temp\tmpmnv_4n\setuptools-15.1
Installing Setuptools
Traceback (most recent call last):
File "setup.py", line 21, in
exec(init_file.read(), command_ns)
File "", line 11, in
File "c:\users\admini~1\appdata\local\temp\tmpmnv_4n\setuptools-15.1\setuptool
s__init__.py", line 11, in
from setuptools.extension import Extension
File "c:\users\admini~1\appdata\local\temp\tmpmnv_4n\setuptools-15.1\setuptool
s\extension.py", line 8, in
from .dist import _get_unpatched
File "c:\users\admini~1\appdata\local\temp\tmpmnv_4n\setuptools-15.1\setuptool
s\dist.py", line 19, in
import pkg_resources
File "c:\users\admini~1\appdata\local\temp\tmpmnv_4n\setuptools-15.1\pkg_resou
rces__init__.py", line 83, in
import pkg_resources._vendor.packaging.specifiers
File "c:\users\admini~1\appdata\local\temp\tmpmnv_4n\setuptools-15.1\pkg_resou
rces_vendor\packaging\specifiers.py", line 274, in
class Specifier(_InpidualSpecifier):
File "c:\users\admini~1\appdata\local\temp\tmpmnv_4n\setuptools-15.1\pkg_resou
rces_vendor\packaging\specifiers.py", line 373, in Specifier
re.VERBOSE | re.IGNORECASE,
File "F:\python\lib\re.py", line 190, in compile
return _compile(pattern, flags)
File "F:\python\lib\re.py", line 242, in _compile
raise error, v # invalid expression
sre_constants.error: nothing to repeat
Something went wrong during the installation.
See the error message above.

ringa_lee
ringa_lee

ringa_lee

reply all(2)
Peter_Zhu

It feels like a Python bug, please re-download the latest version of Python27 and install it.
Also, make sure ez_setup.py is up to date.
If you need pip, you can use https://bootstrap.pypa.io/get-pip.py directly. pip comes with setuptools.

巴扎黑

I think you need to use pip. The latest Python2 and Python3 both come with pip,
Under Windows environment

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!