Python

ValueError: numpy.dtype has the wrong size, try recompiling

scikit-learnとかpandas環境のセットアップ作業で、手間取ってnumpyのバージョン動かしてると出るエラー。 単純に再インストールしてもキャッシュを見てビルドされないらしー。 $ pip uninstall scikit-learn $ pip install scikit-learn==0.16.1 --no-cache…

Python requests SSLError: EOF occurred in violation of protocol

とあるs付きのAPIにリクエストを投げた時に発生したエラー_φ(・_・ python 2.7.10 opelssl 1.0.1e requests 2.8.1 In [21]: r = requests.get(url) --------------------------------------------------------------------------- SSLError Traceback (most re…

MacBook AirのPython環境メモ

7月ぐらいから、pyenv、pyenv-virtualenv 使うように変更、その時のメモ1 ) install pyenv $ brew install pyenv $ echo 'eval "$(pyenv init -)"' >> ~/.bash_profile $ exec -l $SHELL2 ) install 2.7.10 #普通にpyenv install 2.7.10 だとzlib extensio…