問題描述
我在虛擬環境中工作,安裝 numpy 和 scipy 時遇到問題.據我了解,在使用 scipy 之前我必須完全安裝 numpy,但是我在安裝 numpy 時遇到了麻煩.
I am working in a virtual environment and I am having trouble installing numpy and scipy. It is my understanding that I have to full install numpy before going to scipy, but I am having trouble installing numpy.
我使用 pip install numpy
并將 numpy 安裝到我的 python2.7/site-packages/numpy 目錄中,但是,我正在嘗試運行 python setup.py install --user
如此處所述 numpy build 我不斷收到錯誤this是錯誤的文件運行".我不知道從哪里開始......我仍然需要安裝 scipy
I usedpip install numpy
and that installed numpy into my python2.7/site-packages/numpy directory, however, I am trying to run python setup.py install --user
as stated here numpy build and I keep getting the error "this is the wrong file to run". I do not know where to go from here....and I still need to install scipy
推薦答案
numpy 和 scipy 在 CentOS 中預編譯,只需輸入:
numpy and scipy come pre-compiled with CentOS, just type:
sudo yum install numpy scipy
從源代碼安裝總是比較困難.
it is always harder to install from source code.
這篇關于在 centos 6.4 上安裝 numpy&scipy的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!