如何在EC2服务器上安装Scipy [英] How to install Scipy on ec2 server

查看:93
本文介绍了如何在EC2服务器上安装Scipy的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法在ec2上安装scipy。因此,我试图下载该文件,它显示以下错误。我想念什么?非常感谢!这里真的是新手,可以使用远程环境。

I'm getting stuck on installing scipy on ec2. So I was trying to get the file to download, and it shows the following errors. What am I missing? Thanks so much! Really newbie here to working with remote environments.

$ curl http://downloads.sourceforge.net/project/scipy/scipy/0.11.0/scipy-0.11.0.zip?r=&ts=1364951046&use_mirror=iweb
[1] 2355
-bash: amp: command not found
[2] 2357
-bash: amp: command not found


推荐答案

通过 pip


  1. sudo apt-get install -y python-pip

  1. sudo apt-get install -y python-pip

sudo pip install numpy #scipy取决于numpy

sudo pip install numpy #scipy depends on numpy

sudo pip install scipy

sudo pip install scipy

PS我建议您在virtualenv上安装第2步和第3步

P.S. I recommend you install step 2 and 3 on virtualenv

似乎您应该安装步骤3之前的财富。您可以在此处此处查看

Seems you should install Fortune before step 3. You can take a look at here

最后,我启动了一个新的EC2实例并为您安装了它:

Finally, I launch a new EC2 instance and installed it for you:


  1. sudo apt-get install -y python-pip

  1. sudo apt-get install -y python-pip

sudo pip安装numpy

sudo pip install numpy

sudo apt-get安装gfortran

sudo apt-get install gfortran

sudo apt-get安装libblas -dev

sudo apt-get install libblas-dev

sudo apt-get安装liblapack-dev

sudo apt-get install liblapack-dev

sudo apt-get安装g ++

sudo apt-get install g++

sudo pip安装scipy

sudo pip install scipy

希望这些方法可行。

这篇关于如何在EC2服务器上安装Scipy的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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