You could remove the folder of "numpy-1.20.1.dist-info" in error information firstly, and try install again.
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.
Could not install packages due to an EnvironmentError: [Errno 2] numpy-1.20.1.dist-infor \\METADATA