LoginSignup
2
3

More than 5 years have passed since last update.

Windows 10 64bit でanaconda上のjupyterでCythonが走らなかった件について

Posted at

Windows 10 Pro 64bit,anaconda 上のjupyter(5.0.0)でCythonがうまく走らず(python 3.6.1) 以下のエラーが表示された。
"Unable to find vcvarsall.bat"

Visual Studio Community 2017を開いて,Python関連のツールをインストールした。右上の検索窓にpythonと打つと候補がすぐに出てくる。
インストール完了後は次のようなエラーが出た。
CompileError: command 'cl.exe' failed: No such file or directory

adminでvisual studioのコマンドプロンプトを開いてもだめ。
Anaconda navigatorでcythonのバージョンを見てみたら0.25.2でupdateがあったので0.26.1に更新してみた。
変化なし。

cl.exeの場所を特定し,(C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\binにあった)環境変数を追加。
エラーが変わった。
CompileError: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\bin\\cl.exe' failed with exit status 2

解決

Microsoft Visual C++ 2015 Build Toolsをインストールしたら解決した。

2
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
3