|
|
金子邦彦研究室: データベース、人工知能(AI)、データサイエンスの融合により不可能を可能にする |
Python(x,y) は次のソフトウエアを一体化したもの (Python(x,y) is a collection of following softwares).
この Web ページでは、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")
コマンドプロンプトを開き、次のコマンドを実行 (Open Cmd.exe, and do the following command)
pip install -U 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 pip install -U %i
pip の実行時に次のようなエラーがでる場合がある.
error: Unable to find vcvarsall.bat
このエラーが出たときは、setuptools の更新を行う (但し、必要もなく行わない方がよい)。
pip install -U setuptools
エラーメッセージが出ていないこと.
まだ確認できていません。参考として載せています。 ここに載せた手順はうまく動かない可能性があります。
別の Web ページで、MinGW のインストールについて説明しています.MinGW の fortran コンパイラを使います.
別の Web ページで、Visual Studio Community 2013 のインストールについて説明しています.
まず、コマンドプロンプトで、環境変数 %VS120COMNTOOLS% の値を表示する. (Dispay the environment variable %VS120COMNTOOLS%)
echo %VS120COMNTOOLS%
この結果から、VC ディレクトリが分かる. (The result shows the VC directory)
「マイコンピュータ」 → 「プロパティ」 → 「詳細設定」 → 「環境変数」のように 操作し、次のように設定する
下の実行例では、Visutal Studio 2013 を使うように設定している
64ビットWindows
32ビットWindows