2014-12-02 43 views
2

我们有一个没有互联网连接的prod服务器机器,我希望能够执行“点子轮”。如何在没有互联网连接的机器上安装“点子轮”?

我已经下载了virtualenv-1.9.tar.gz复制到prod服务器并提取它。首先,为什么不马上提供点子轮?

[[email protected] ~]$ ./virtualenv-1.9/virtualenv.py venv/v1 
New python executable in venv/v1/bin/python 
Installing setuptools............done. 
Installing pip...............done. 
[[email protected] ~]$ source venv/v1/bin/activate 
(v1)[[email protected] ~]$ which pip 
~/venv/v1/bin/pip 
(v1)[[email protected] ~]$ pip wheel 
ERROR: unknown command "wheel" - maybe you meant "help" 

我进行下载和复制wheel-0.24.0.tar.gz,但只安装wheel,不pip wheel

(v1)[[email protected] ~]$ pip install wheel-0.24.0.tar.gz 
Unpacking ./wheel-0.24.0.tar.gz 
    Running setup.py egg_info for package from file:///x/home/ihadanny/wheel-0.24.0.tar.gz 
    no previously-included directories found matching 'wheel/test/*/dist' 
    no previously-included directories found matching 'wheel/test/*/build' 
Installing collected packages: wheel 
    Running setup.py install for wheel 
    no previously-included directories found matching 'wheel/test/*/dist' 
    no previously-included directories found matching 'wheel/test/*/build' 
    Installing wheel script to /x/home/ihadanny/venv/v1/bin 
Successfully installed wheel 
Cleaning up... 
(v1)[[email protected] ~]$ pip wheel 
ERROR: unknown command "wheel" - maybe you meant "help" 

编辑:我也试着pip install wheel到无果

(v1)[[email protected] ~]$ pip install wheel 
Requirement already satisfied (use --upgrade to upgrade): wheel in ./venv/v1/lib/python2.6/site-packages 
Cleaning up... 
(v1)[[email protected] ~]$ pip wheel 
ERROR: unknown command "wheel" - maybe you meant "help" 

当然upgrade不能工作(没有互联网连接...)

(V1)[ihadanny @ lvshdc2en0012〜] $ PIP安装--upgrade轮 无法获取指数的基础URL https://pypi.python.org/simple/

我失去了什么?

+1

'pip install wheel'? – ThinkChaos 2014-12-02 18:01:32

+0

谢谢@ plg,但这并没有把戏。 – ihadanny 2014-12-02 18:08:41

+1

对我来说,看起来你需要不同版本的点子。你正在使用哪个版本?如果没有连接,你也不能使用'pip install wheel'。 – Marcs 2014-12-02 18:27:54

回答

4

如果更新pip,仍然可以使用该虚拟env,但更好地更新为最新的virtualenv。如果你没有连接下载wheel源码包,解压并使用:

PIP安装轮0.24.0/

不要忽略最后的斜杠。

+0

谢谢,根本原因是我没有注意到1.9 <1.11的经典错误:) – ihadanny 2014-12-06 15:06:27

相关问题