CLEMENT
CLEMENT

Reputation: 361

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)

Upvotes: 6

Views: 21974

Answers (2)

SoroushAzizzadeh
SoroushAzizzadeh

Reputation: 41

I had the same problem with matplotlib. It looked like I wanted to install a package from some sort of unauthorized source.

You should delete the folder that caused the problem in site-packages folder. In your case, it is ~yproj (In my case, it was ~atplotlib).

In short :

  1. Find the site-packages folder -> Type "pip show pyproj" or any other library you want!
  2. Delete the folder mentioned in the warning : ~yproj in your case

Upvotes: 4

father_goose
father_goose

Reputation: 351

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 ~.

Upvotes: 16

Related Questions