Windows での,Python(x,y) 2.7.10 と各種パッケージのインストール手順を説明する.
Python(x,y) は次のソフトウェアを一体化したもの (Python(x,y) is a collection of following softwares).
このページでは、Python(x,y)と、Python の各種パッケージのインストールを行う. (In this Web page, we install Python(x,y), several Python packages.)
目次 (Index)
ダウンロードが終わるまで,しばらく待つ.
ライセンス条項に同意できる場合のみ次に進む
Python と Others にチェックする (Check Python and Others)
分かりやすいディレクトリにインストールしたほうが良いので,C:\pythonxy に変える (Set "C:\pythonxy")
インストール終了までしばらく待つ.
Windows では,コマンドプロン プトを管理者として実行し, 次のコマンドを実行する.
python -m pip install -U pip setuptools
python 1 + 2 exit()
pip list
新しい画面が開く
念のため、python, python\scripts, python\lib\site-packages にパスが通っているかの確認を行なっておく
echo %PATH%
python
下の実行例では、バージョン番号として「1500」が表示されている (In the following example, the version number is 1500).
from distutils.msvc9compiler import * get_build_version()
先ほど表示されたバージョン番号(1500)と一致することを確認しておく. (The result of this step is equal to the compiler version number in the previous step?)
インストールしておきたいおすすめパッケージ.
for %i in (setuptools sphinx numpy bottleneck scipy matplotlib ipython pygments pandas theano pillow ggplot prettyplotlib pygraphviz seaborn gloo statsmodels qgis orange scikit-image scikit-learn scikit-video scikits.statsmodels scikits.datasmooth scikits.example scikits.fitting scikits.learn scikits.optimization scikits.pulsefit scikits.timeseries scikits.vectorplot bottle numexpr xlrd xlsxwriter zodb lxml beautifulsoup gdata) do python -m pip install -U %i
pip の実行時に次のようなエラーがでる場合がある.
error: Unable to find vcvarsall.bat
このエラーが出たときは、setuptools の更新を行う
python -m pip install -U setuptools
エラーメッセージが出ていないこと.