如何更新Numpy到最新的?我應該從這裏下載.dmg文件:如何在Mac OS X Snow Leopard上更新Numpy?
http://sourceforge.net/projects/numpy/files/
這是唯一的.dmg 10.5?我已經安裝numpy的使用這些指令:
http://www.scipy.org/Installing_SciPy/Mac_OS_X
我現在的NumPy的是1.2.1。我在Mac OS X 10.6.1 Snow Leopard上運行。謝謝!
如何更新Numpy到最新的?我應該從這裏下載.dmg文件:如何在Mac OS X Snow Leopard上更新Numpy?
http://sourceforge.net/projects/numpy/files/
這是唯一的.dmg 10.5?我已經安裝numpy的使用這些指令:
http://www.scipy.org/Installing_SciPy/Mac_OS_X
我現在的NumPy的是1.2.1。我在Mac OS X 10.6.1 Snow Leopard上運行。謝謝!
sudo easy_install -U numpy
通過setuptools的安裝將獲得在sys.path中的非系統工具程序(我已經告訴一些蘋果公用事業依靠系統numpy的)新numpy的。在一般情況下,setuptools的將「做正確」的事情在OS X
其他地方建議,MacPorts的工作在多個架構和MACOSX +的版本精細允許更新和更多:
$ port search numpy
py-numpy @1.3.0 (python)
The core utilities for the scientific library scipy for Python
py25-numpy @1.3.0 (python)
The core utilities for the scientific library scipy for Python
py25-symeig @1.4 (python, science)
Symeig - Symmetrical eigenvalue routines for NumPy.
py26-numpy @1.3.0 (python)
The core utilities for the scientific library scipy for Python
py26-scikits-audiolab @0.10.2 (python, science, audio)
Audiolab is a python toolbox to read/write audio files from numpy arrays
Found 5 ports.
$
你的情況
,簡單的問題:
$ sudo port install py26-numpy
另外,如果你想/需要自己編譯,在HJBlog指令是非常有用的。我測試過並可以輕鬆編譯64位版本的matplotlib。
由於某種原因,easy_install -U numpy無法正常工作。
import numpy
print numpy.__file__
我下載的是GNU C++編譯器從:
print numpy.__version__
總是通過查找並刪除整個文件夾給1.2.1
所以,我先取出numpy的1.2.1:
http://r.research.att.com/gfortran-4.2.3.dmg
我用的easy_install安裝numpy的。
回想起來,如果我安裝了Fortran編譯器,easy_install -U numpy可能已經工作。
使用pip install -U numpy
代替,如easy_install的是有利於pip
不贊成由奧斯汀指出,你必須先安裝http://r.research.att.com/gfortran-4.2.3.dmg。在測試了新安裝10.6.4我 – Mark 2010-10-21 20:19:49
有試圖 須藤的easy_install -U numpy的 所以我做了如下類似的問題: 須藤的easy_install點子 安裝點子。比安裝numpy通過'pip' pip安裝numpy 哪些工作很好。 – 2012-10-19 13:43:46