2013-12-21 51 views
1

我需要一定的Python庫(即Blender),這only works for Python3.xpip可以在同一臺計算機上同時運行python2.x和python3.x嗎?

這將意味着爲Python 3.安裝numpy我得到

Python 3.2.3 (default, Sep 25 2013, 19:36:10) 
[GCC 4.7.2] on linux2 
Type "help", "copyright", "credits" or "license" for more information. 
>>> import numpy 
Traceback (most recent call last): 
    File "<stdin>", line 1, in <module> 
ImportError: No module named numpy 

現在它僅適用於我的2.7
是它可以安裝pip,以便它適用於Python 2.7和Python 3?

回答

1

你可以問蟒蛇運行PIP模塊作爲腳本

python -m pip --help 
python3 -m pip install whatever 
相關問題