LoginSignup
4
3

More than 5 years have passed since last update.

python3でmatplotlibを入れようとして詰まった話

Posted at

はい、ただの情弱です

pyenvでpython3.4.2をインストールしていてmatplotlibをpip3で入れようとしてハマったのでメモ

pip3 install numpy scipy matplotlib

なんか色々出たので調べると以下をすれば治るよとのこと…

brew install freetype
$ pip3 install matplotlib
・
・
・
TypeError: unorderable types: str() < int()

違うエラー出るよ?

これpython自体のバグらしいですね
参考:http://qiita.com/amacbee/items/4c96af23690fecd1ece3

pyenvでパッチを当てる場所は以下

wget http://bugs.python.org/file25808/14894.patch
cd /Users/username/.pyenv/versions/3.4.2/lib/python3.4/distutils/
sudo patch -p3 < /path/to/patch/14894.patch 

再度

pip3 install matplotlib

これで行けました

4
3
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
3