LoginSignup
3
2

More than 1 year has passed since last update.

python kerasダウンロードエラー 解決 (記録)

Posted at

pip install kerasで発生したエラー

問題:インストールできない

ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: 'C:\\Users\\spide\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python39\\site-packages\\tensorflow\\include\\external\\com_github_grpc_grpc\\src\\core\\ext\\filters\\client_channel\\lb_policy\\grpclb\\client_load_reporting_filter.h'
HINT: This error might have occurred since this system does not have Windows Long Path support enabled. You can find information on how to enable this at https://pip.pypa.io/warnings/enable-long-paths

Windowsでのファイルパス長の制限が原因でエラーが発生しました

PythonがAppDataユーザーのホームディレクトリの下のフォルダ構造などのネストされた場所にインストールされている場合、Windowsのデフォルトのパスサイズ制限に達すると、pipがパッケージのインストールに失敗することがあります。

regeditツールを使用して、Windowsレジストリでその制限を解除することができます。

1.Windowsのスタートメニューに「regedit」と入力して起動しますregedit。

2.Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem キーに移動し ます。

3.LongPathsEnabledそのキーのプロパティの値を編集し、1に設定します。

4.kerasを再インストールします(以前の壊れたインストールは無視します):

5.pip install keras

3
2
1

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
3
2