LoginSignup
4
5

More than 5 years have passed since last update.

機械学習キット numpy matplotlib scipy 御三家をdebian ubuntu にインストールするには守るべき順番がある

Posted at

機械学習キット numpy matplotlib scipy 御三家をdebian ubuntu にインストールするには守るべき順番がある

python -v

  • うん、これはさすがにはいっている

pip
: command not found

  • さてここから

sudo apt-get install python-pip

  • pip install ですんなりはいると思ったら大間違い

sudo apt-get install -y python2.7-dev libpng-dev libfreetype6-dev
sudo apt-get install -y libgtk2.0-dev
sudo apt-get install -y python-gtk2-dev

上記devをいれてからようやくnumpy とmatplotlibが通る

sudo pip install numpy
sudo pip install matplotlib

numpyの前にscipyは入らないけど、後にもまだ必要なものを自分で依存解決する必要がある。

sudo pip install cython

sudo apt-get install gfortran
sudo apt-get install liblapack-dev

sudo pip install scipy

4
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
5