Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

why do I receive these errors "WARNING: Ignoring invalid distribution -yproj " while installing any python module in cmd

WARNING: Ignoring invalid distribution -yproj (c:\users\space_junk\appdata\local\programs\python\python310\lib\site-packages) WARNING: Ignoring invalid distribution -yproj (c:\users\space_junk\appdata\local\programs\python\python310\lib\site-packages) WARNING: Ignoring invalid distribution -yproj (c:\users\space_junk\appdata\local\programs\python\python310\lib\site-packages)

like image 704
CLEMENT Avatar asked Jul 12 '26 11:07

CLEMENT


1 Answers

I was getting a similar message that turned out be caused by a previous failed pip upgrade. I had attempted to upgrade pip from a user account that didn't have the proper rights. There was a temp directory left behind in site-packages that began with ~ip which was causing pip to complain every time it ran. I removed the directory and was able to re-upgrade pip using an account that had proper permissions. No more warnings from pip.

Did you have a problem installing something like pyproj by any chance? The temp directory seems to be named by replacing the first letter of the library with a ~.

like image 148
father_goose Avatar answered Jul 14 '26 01:07

father_goose



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!