問題
pipを実行すると以下のエラーが発生した。
e to an OSError: [Errno 2] No such file or directory:
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
対策
Powershellを管理者アカウントで起動して以下のコマンドを実行する。
これで長いパスを許可する。
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Type DWord -Value 1 -Force
以上。
コメント