Python 无法使用easy_install安装TurboJson 1.3.2

Python 无法使用easy_install安装TurboJson 1.3.2,python,turbogears,Python,Turbogears,easy\U install-U TurboJson失败,出现以下错误- user@ubuntu-dev:~$ sudo easy_install -U TurboJSON Searching for TurboJSON Reading pypi.python.org/simple/TurboJSON link Best match: TurboJson 1.3.2 Downloading TurboJson-1.3.2-py2.7.egg#md5=8708fcb8979c661104c9b44

easy\U install-U TurboJson
失败,出现以下错误-

user@ubuntu-dev:~$ sudo easy_install -U TurboJSON
Searching for TurboJSON
Reading pypi.python.org/simple/TurboJSON link
Best match: TurboJson 1.3.2
Downloading TurboJson-1.3.2-py2.7.egg#md5=8708fcb8979c661104c9b444e5428484
Processing TurboJson-1.3.2-py2.7.egg
Moving TurboJson-1.3.2-py2.7.egg to /usr/local/lib/python2.7/dist-packages
Adding TurboJson 1.3.2 to easy-install.pth file

Installed /usr/local/lib/python2.7/dist-packages/TurboJson-1.3.2-py2.7.egg
Processing dependencies for TurboJSON
Searching for simplejson>=1.9.1
Reading pypi.python.org/simple/simplejson/ link
Best match: simplejson 3.8.1
Downloading simplejson-3.8.1.tar.gz#md5=b8441f1053edd9dc335ded8c7f98a974
Processing simplejson-3.8.1.tar.gz
Writing /tmp/easy_install-4VcmRi/simplejson-3.8.1/setup.cfg
Running simplejson-3.8.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-4VcmRi/simplejson-3.8.1/egg-dist-tmp-K89rCq
zip_safe flag not set; analyzing archive contents...
simplejson.tests.init: module references file Adding simplejson 3.8.1 to easy-install.pth file

Installed /usr/local/lib/python2.7/dist-packages/simplejson-3.8.1-py2.7-linux-x86_64.egg
Searching for PEAK-Rules>=0.5a1.dev-r2600
Reading https://pypi.python.org/simple/PEAK-Rules/
No local packages or download links found for PEAK-Rules>=0.5a1.dev-r2600

error: Could not find suitable distribution for Requirement.parse('PEAK-Rules>=0.5a1.dev-r2600')

user@ubuntu-dev:~$

好像坏了。它没有列出任何非常奇怪的包。早些时候,它主要提供PEAK Rules>=0.5a1.dev-r2713。

据我所知,PEAK Rules的PyPi页面没有任何可供安装的包,正如您在问题中所怀疑的那样

解决方案是自己安装PEAK规则依赖项,然后再安装TurboJSON

首先,运行:
easy\u安装http://www.turbogears.org/2.1/downloads/current/PEAK-Rules-0.5a1.dev-r2686.tar.gz

这将成功安装
PEAK Rules 0.5a1.dev-r2686
,它将满足
PEAK Rules>=0.5a1.dev-r2600
的TurboJSON要求


现在,如果您运行
(sudo)easy\U install-U TurboJSON
,安装应该可以正常工作。

easy\U installhttp://www.turbogears.org/2.1/downloads/current/PEAK-Rules-0.5a1.dev-r2686.tar.gz
要获取峰值规则,然后重新运行
easy\u install TurboJSON
。我认为pypi peak rules软件包如您所怀疑的那样被破坏了。谢谢!我现在使用了与解决方法相同的方法。TurboGears 2.0.4还提供了峰值规则0.5a1.dev-r2686。所以,我运行了:easy_install你有任何线索是PyPi页面的峰值规则暂时被破坏了,还是总是这样?我觉得它被意外破坏了,因为之前在安装TurboJson 1.3.2时,PEAK Rules>=0.5a1.dev-r2713是作为依赖项安装的。