原创

从零开始搭建ReviewBoard之执行easy_install ReviewBoard 问题分析

        Flup提供三组WSGI服务器/网关,它们使用AJP 1.3,FastCGI和SCGI。每个服务器有两种风格:线程版本和分叉版本。目前最新版本:1.0.3.dev20161029。


执行easy_install ReviewBoard命令时,报error: Could not find suitable distribution for Requirement.parse('flup')错误信息,具体日志如下:

[root@localhost reviewboard]# easy_install ReviewBoard 

Searching for ReviewBoard

Best match: ReviewBoard 1.6

Processing ReviewBoard-1.6-py2.6.egg

ReviewBoard 1.6 is already the active version in easy-install.pth

Installing rb-site script to /usr/bin

Installing rbssh script to /usr/bin


Using /usr/lib/python2.6/site-packages/ReviewBoard-1.6-py2.6.egg

Processing dependencies for ReviewBoard

Searching for pytz

Reading http://downloads.reviewboard.org/mirror/

Download error: [Errno -2] Name or service not known -- Some packages may not be found!

Reading http://downloads.reviewboard.org/releases/ReviewBoard/1.6/

Reading http://pypi.python.org/simple/pytz/

Download error: [Errno -2] Name or service not known -- Some packages may not be found!

Reading http://pypi.python.org/simple/pytz/

Best match: pytz 2016.10

Downloading https://pypi.python.org/packages/bb/a3/98ce49fa2d3e1bd58a247683cb8354be8fefe2a9c88fed4a2346781888ce/pytz-2016.10-py2.6.egg#md5=57c34cc6419a0711d33c253d78474b93

Processing pytz-2016.10-py2.6.egg

creating /usr/lib/python2.6/site-packages/pytz-2016.10-py2.6.egg

Extracting pytz-2016.10-py2.6.egg to /usr/lib/python2.6/site-packages

Adding pytz 2016.10 to easy-install.pth file


Installed /usr/lib/python2.6/site-packages/pytz-2016.10-py2.6.egg

Searching for python-dateutil==1.5

Reading http://pypi.python.org/simple/python-dateutil/

Best match: python-dateutil 1.5

Downloading https://pypi.python.org/packages/b4/7c/df59c89a753eb33c7c44e1dd42de0e9bc2ccdd5a4d576e0bfad97cc280cb/python-dateutil-1.5.tar.gz#md5=0dcb1de5e5cad69490a3b6ab63f0cfa5

Processing python-dateutil-1.5.tar.gz

Running python-dateutil-1.5/setup.py -q bdist_egg --dist-dir /tmp/easy_install-TVMoer/python-dateutil-1.5/egg-dist-tmp-9Wi80g

Adding python-dateutil 1.5 to easy-install.pth file


Installed /usr/lib/python2.6/site-packages/python_dateutil-1.5-py2.6.egg

Searching for paramiko>=1.7.6

Reading http://pypi.python.org/simple/paramiko/

Best match: paramiko 2.1.2

Downloading https://pypi.python.org/packages/64/79/5e8baeedb6baf1d5879efa8cd012f801efc232e56a068550ba00d7e82625/paramiko-2.1.2.tar.gz#md5=41a8ea0e8abb03a6bf59870670d4f46c

Processing paramiko-2.1.2.tar.gz

Running paramiko-2.1.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-WKdNtY/paramiko-2.1.2/egg-dist-tmp-DFxYhS

zip_safe flag not set; analyzing archive contents...

Adding paramiko 2.1.2 to easy-install.pth file


Installed /usr/lib/python2.6/site-packages/paramiko-2.1.2-py2.6.egg

Searching for flup

Reading http://pypi.python.org/simple/flup/

Download error: [Errno -2] Name or service not known -- Some packages may not be found!

Reading http://pypi.python.org/simple/flup/

Download error: [Errno -2] Name or service not known -- Some packages may not be found!

Couldn't find index page for 'flup' (maybe misspelled?)

Scanning index of all packages (this may take a while)

Reading http://pypi.python.org/simple/

Download error: [Errno -2] Name or service not known -- Some packages may not be found!

No local packages or download links found for flup

error: Could not find suitable distribution for Requirement.parse('flup')


解决分析:

缺少 flup 和 distribute 插件导致Could not find suitable distribution for Requirement.parse('flup')错误

下载地址:https://pypi.python.org/pypi/flup/1.0   flup-1.0.tar.gz 

下载地址:https://pypi.python.org/pypi/distribute/0.7.3   distribute-0.7.3.zip


解决方法:

解压下载后的文件,之后切换到distribute-0.7.3目录下,执行安装命令python setup.py install,具体如下:

[root@localhost reviewboard]# cd distribute-0.7.3/
[root@localhost distribute-0.7.3]# python setup.py install

重新执行 easy_install ReviewBoard 命令即可。

关注下方微信公众号“Java精选”(w_z90110),回复关键字领取资料:如HadoopDubboCAS源码等等,免费领取资料视频和项目。 

涵盖:程序人生、搞笑视频、算法与数据结构、黑客技术与网络安全、前端开发、Java、Python、Redis缓存、Spring源码、各大主流框架、Web开发、大数据技术、Storm、Hadoop、MapReduce、Spark、elasticsearch、单点登录统一认证、分布式框架、集群、安卓开发、iOS开发、C/C++、.NET、Linux、Mysql、Oracle、NoSQL非关系型数据库、运维等。

评论

分享:

支付宝

微信