Dear 先進,
Mac 內附了一套Python 2.7.
這是一件好事。
但敝人自裝了一套Python 3.5在安裝套件時常常出問題。
例如用pip 裝numpy, sklearn, lasagne, no learn, Theano等等。
用pip基本上會裝在2.7環境。
有些可以用非pip,如numpy, sklearn, 裝了上去。
整個來說常常搞到心力交瘁。
有神人知道如何用pip把套件裝到python3嗎?
先謝了!!!!
rockindy wrote:
可以 google...(恕刪)
再次謝謝!
不過我昨天不小心找到了.
原來加 pythonx -m 就可以.

On Linux, Mac OS X and other POSIX systems, use the versioned Python commands in combination with the -m switch to run the appropriate copy of pip:
python2 -m pip install SomePackage # default Python 2
python2.7 -m pip install SomePackage # specifically Python 2.7
python3 -m pip install SomePackage # default Python 3
python3.4 -m pip install SomePackage # specifically Python 3.4
詭異的是, 裝完在python 3 idle環境可以用.
但在ipython / qtconsole Python 3環境不能用.
最後serch 2.7環境下的folder name (如nolearn),
再copy到Python3 相對應的path下即可.


