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

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

répondre à tous(2)
Peter_Zhu

感觉是 Python 的Bug, 请用重新下载 Python27 的最新版安装。
另外,保证 ez_setup.py 最新。
如果需要 pip,可以直接使用 https://bootstrap.pypa.io/get-pip.py,pip 自带了 setuptools。

巴扎黑

我觉得你需要使用pip, 最新的Python2和Python3都自带了pip,
Windows环境下

Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal
À propos de nous Clause de non-responsabilité Sitemap
Site Web PHP chinois:Formation PHP en ligne sur le bien-être public,Aidez les apprenants PHP à grandir rapidement!