この記事は書きかけ中です。
いろいろなサイトからの引用で作ってあります。
数値解析ライブラリで、有名になってきている。
Windows cygwin環境でがんばってみたが、うまくいかないことがわかるメモ
macかlinuxでやるとよさそう。
windowsの場合は、cygwinでは、whlファイルがcygwinに対応していないとかで入らない。
pip と wheel を windows でも使いこなす
http://qiita.com/toruuetani/items/b0000e9f5c89a350d4f8#2-2
本家のサイトをみると、一番いいインストール方法は、conda を使えと書いてある
conda install pandas
http://conda.pydata.org/miniconda.html
Pythonの実行環境であるMinicondaのコマンドTips。
http://qiita.com/icoxfog417/items/02a80b93b5f1e95f2795
python -V
結果
Python 2.7.12
pipが使えるようになっていないと、インストールができないようです。
cygwinからは、cygwinのインストーラからpython-setuptoolsを 選んで、
OK
easy_install pip
ためしに、condaも入るかな?
OK
easy_install conda
じゃあ
conda install pandas
できるかな?
結果
Traceback (most recent call last):
(略)
ImportError: No module named enum
これはpython3のライブラリのことで、
pip install enum34
とやることで、回避できるようです。
いろいろ、インストールいるんじゃない?
cygwinで入れるべきものは、easy_installは面倒みてくれないのかもしれない。
easy_installがないといわれても、 easy_install (Tabキー)でバージョンがでるので、それを使うようです。
ミスした例
easy_install install pip
No local packages or download links found for install
error: Could not find suitable distribution for Requirement.parse('install')
https://pypi.python.org/pypi/wheel/#downloads
wheel-xx.tar.gzを落として、cmdから以下を打つ。
pip install (wheel-0.xx.0.tar.gzの絶対パス)
numpy, pandasのwhlファイルを取得する。ついでにscipyやipythonも
http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy http://www.lfd.uci.edu/~gohlke/pythonlibs/#pandas http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy
cmdから以下を打つ
pip install (whlファイルの絶対パス)
pandasの前にnumpyを読み込んでおくこと。