日々精進

新しく学んだことを書き留めていきます

pip installl tensorflow時に「ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory:」エラー

pip installl tensorflowを実行したら以下のエラーが出た。

ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: 'c:\\users\\< username>\\appdata\\local\\continuum\\miniconda3\\envs\\envname\\lib\\site-packages\\numpy-1.20.3.dist-info\\RECORD'

原因はnumpy-1.20.3.dist-infoフォルダはあるがその中にRECORDファイルがなかったため。 一度tensorflowをuninstallしたからそんな状態になったのかな? numpy-1.20.3.dist-infoフォルダを消してpip installl tensorflowを実行したら直った。