无法使用 easy_install 安装 TurboJson 1.3.2

Unable to install TurboJson 1.3.2 using easy_install

easy_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:~$

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

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

解决方法是自己安装PEAK-Rules依赖,然后再安装TurboJSON。

首先,运行: easy_install 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_install -U TurboJSON,安装应该会按预期进行。