Creative Field Blog

悩まず、使い倒そうよ。

Python Windows installer エラー

Pythonによるあたらしいデータ分析の教科書」

インストールするPythonのバージョンが本の中では古いので、3.8をインストールする。

https://www.python.org/downloads/

 

インストールは問題なかったが、pip install numpy等、pip installで下記のエラーが発生

ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied:

Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/

エラーの言う通りに、Build Tools for Visual Studio 2019をインストールすると、

pip install numpyが成功。

 

https://visualstudio.microsoft.com/ja/downloads/

で下記を選択。 

  • Desktop development with C++
     MAVC v140 VS2015 C++ build tools