みなさんこんにちは.
Pythonのライブラリの一つである"mlpy"のインストールに手こずっています.
インストールをする際に,GSLのインクルードディレクトリを指定しないといけないのですが,どうもうまくいきません.
OSはwindows10です.
参考サイトを置いておきます.(最後の手順でうまくいきません)
mlpyをpython3.3(64bit)でビルド(windows 64bit)
###現状
GSLのライブラリがまるごと入ったファイルを指定しています.
anacondaはインストール済みですので,以下のようなコマンドを実行しました.
結果と一緒に示します.
C:\Users\Yuta\Desktop\mlpy-3.5.0> python setup.py build_ext --include-dirs=C:\gnu-gsl-for-windows-master\gsl --compiler=msvc install running build_ext building 'mlpy.gsl' extension creating build creating build\temp.win-amd64-3.7 creating build\temp.win-amd64-3.7\Release creating build\temp.win-amd64-3.7\Release\mlpy creating build\temp.win-amd64-3.7\Release\mlpy\gsl C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\Yuta\AppData\Local\Programs\Python\Python37\include -IC:\Users\Yuta\AppData\Local\Programs\Python\Python37\lib\site-packages\numpy\core/include -IC:\gnu-gsl-for-windows-master\gsl -IC:\Users\Yuta\AppData\Local\Programs\Python\Python37\include -IC:\Users\Yuta\AppData\Local\Programs\Python\Python37\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\8.1\include\shared" "-IC:\Program Files (x86)\Windows Kits\8.1\include\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\winrt" /Tcmlpy/gsl/gsl.c /Fobuild\temp.win-amd64-3.7\Release\mlpy/gsl/gsl.obj gsl.c mlpy/gsl/gsl.c(223): fatal error C1083: Cannot open include file: 'gsl/gsl_sf.h': No such file or directory error: command 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe' failed with exit status 2
参考記事によると,以下のようなコマンドを実行すればビルドできるみたいです.
python setup.py build_ext --include-dirs=(GSLのインクルードディレクトリ) --compiler=msvc install
あなたの回答
tips
プレビュー