我們有一個沒有互聯網連接的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/
我失去了什麼?
'pip install wheel'? – ThinkChaos 2014-12-02 18:01:32
謝謝@ plg,但這並沒有把戲。 – ihadanny 2014-12-02 18:08:41
對我來說,看起來你需要不同版本的點子。你正在使用哪個版本?如果沒有連接,你也不能使用'pip install wheel'。 – Marcs 2014-12-02 18:27:54