Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not install packages due to an EnvironmentError: [Errno 2] numpy-1.20.1.dist-infor \\METADATA

I wanna install three packages in anaconda, but I face the following error.

Error: Could not install packages due to an OSError: [Errno 2] No such file or directory: 'c:\\programdata\\anaconda3\\lib\\site-packages\\numpy-1.20.1.dist-info\\METADATA'.

I have changed HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem@LongPathsEnabled to 1, but it does not still work. There are some similar problems with pip and some solutions are provided but I could not apply them. Is there any difference between the pip\\METADA error and numpy\\METADATA error?

I have basic knowledge and I would be thankful if someone can explain how to fix it with details. For example, some people suggested installing in another directory, but I do not know how to do this.

like image 487
Katan katalan Avatar asked Oct 16 '25 17:10

Katan katalan


2 Answers

Check if you have any other .\numpy-1.20.*xxx*.dist-info folders. If you do have and it is not empty ( it should have METADATA in it as well) copy that folder content to your

\numpy-1.20.1.dist-info\
like image 159
MartinT Avatar answered Oct 18 '25 07:10

MartinT


You could remove the folder of "numpy-1.20.1.dist-info" in error information firstly, and try install again.

like image 24
user17023846 Avatar answered Oct 18 '25 07:10

user17023846



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!