在centos 6.4上安装numpy& scipy [英] installing numpy&scipy on centos 6.4

查看:74
本文介绍了在centos 6.4上安装numpy& scipy的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在虚拟环境中工作,无法安装numpy和scipy.据我了解,我必须先完全安装numpy才能安装scipy,但是我在安装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,如此处所述

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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆