Skip to content

YeeLong 8101 + OpenBSD 5.2上安装Python Virtualenv

最近准备将VIMP的一个视频平台网站迁移到一台龙芯机器上(运行OpenBSD 5.2-current mips64el),同时还可以将它作为家里的无线接入点。几经考量,准备使用MediaCore社区版。

MediaCore是使用Python开发的一个视频网站平台。安装过程中有一步需要安装Python的Virtualenv。按照安装手册操作却行不通。

YeeLong# easy_install virtualenv

Searching for virtualenv
Reading http://mediacorecommunity.org/dependencies/dev/

Link to http://pypi.python.org/simple/virtualenv/ ***BLOCKED*** by –allow-hosts

Couldn’t find index page for ‘virtualenv’ (maybe misspelled?)
Scanning index of all packages (this may take a while)

Link to http://pypi.python.org/simple/ ***BLOCKED*** by –allow-hosts

No local packages or download links found for virtualenv
Best match: None
Traceback (most recent call last):
File “/usr/local/bin/easy_install”, line 8, in <module>
load_entry_point(‘setuptools==0.6c11’, ‘console_scripts’, ‘easy_install’)()
File “/usr/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py”, line 1712
, in main
File “/usr/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py”, line 1700
, in with_ei_usage
File “/usr/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py”, line 1716
, in <lambda>
File “/usr/local/lib/python2.7/distutils/core.py”, line 152, in setup
dist.run_commands()
File “/usr/local/lib/python2.7/distutils/dist.py”, line 953, in run_commands

File “/usr/local/lib/python2.7/distutils/dist.py”, line 972, in run_command
cmd_obj.run()
File “/usr/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py”, line 211,
in run
File “/usr/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py”, line 434,
in easy_install
File “/usr/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/package_index.py”, line 475, in fet
ch_distribution
AttributeError: ‘NoneType’ object has no attribute ‘clone’

 

google后发现可以直接下载Virtualenv包的源码进行安装:

YeeLong# ftp http://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.7.1.2.tar.gz

YeeLong# easy_install virtualenv-1.7.1.2.tar.gz
Processing virtualenv-1.7.1.2.tar.gz
Running virtualenv-1.7.1.2/setup.py -q bdist_egg –dist-dir /tmp/easy_install-TG5_T0/virtualenv-1.7.1.2/egg-dist-tmp-4hGv
bY
warning: no previously-included files matching ‘*.*’ found under directory ‘docs/_templates’
Removing virtualenv 0.9.2 from easy-install.pth file
Adding virtualenv 1.7.1.2 to easy-install.pth file
Installing virtualenv script to /usr/local/bin

Installed /usr/local/lib/python2.7/site-packages/virtualenv-1.7.1.2-py2.7.egg
Processing dependencies for virtualenv==1.7.1.2
Finished processing dependencies for virtualenv==1.7.1.2

Avatar

专业Linux/Unix/Windows系统管理员,开源技术爱好者。对操作系统底层技术,TCP/IP协议栈以及信息系统安全有强烈兴趣。电脑技术之外,则喜欢书法,古典诗词,数码摄影和背包行。

No comments yet.

Leave a Reply

SidebarComments (0)