Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot pip udate numpy

Tags:

pip

numpy

I want to update numpy from 1.19.1 to 1.19.2. So I did the following command:

pip install --upgrade numpy

However, I received the following error message:

ERROR: Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: '/userdata/data-dlin/.conda/envs/mybase/lib/python3.7/site-packages/numpy-1.19.1.dist-info/RECORD'

I went to the directory and found the RECORD file was indeed missing. How do I fix the error?

like image 828
David293836 Avatar asked Dec 01 '25 11:12

David293836


1 Answers

Uninstalling numpy (pip uninstall numpy), then deleting the entire folder

(python environment)/lib/site-packages/numpy-1.19.X.dist-info

And reinstalling numpy (pip install numpy) fixed it for me.

like image 80
DannyT710 Avatar answered Dec 06 '25 11:12

DannyT710



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!