How to install Scipy on ec2 server

2019-04-15 12:11发布

问题:

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

回答1:

You can installed it via pip

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

  2. sudo pip install numpy #scipy depends on numpy

  3. sudo pip install scipy

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

EDIT

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

EDIT

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

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

  2. sudo pip install numpy

  3. sudo apt-get install gfortran

  4. sudo apt-get install libblas-dev

  5. sudo apt-get install liblapack-dev

  6. sudo apt-get install g++

  7. sudo pip install scipy

Hope these might work.