101

Error

I keep getting this error:

WARNING: Ignoring invalid distribution -ip (c:\python39\lib\site-packages)

How do I fix this and what does it mean?

I have anaconda and Python installed. I use Jupyter Notebook and Python in VS Code.

This is in Git Bash command line.

My operating system is Windows 10 Home.

I have Python 3.9.2 and pip 21.1.1.

0

1 Answer 1

133

So apparently some folder/package named -ip + some numbers was installed at c:\python39\lib\site-packages.

Once I checked my site packages at the link it provided and removed the ip(random numbers) package it stopped giving me errors.

7
  • 47
    If it has the wrong name, it probably begins with ~ Jun 6, 2021 at 12:54
  • 10
    It occur when I ran pip upgrade failed, remove it should work Jul 7, 2021 at 10:35
  • 26
    Yes, just go to lib\site-packages folder, then looking for folders start with ~ and mentioned in that warning, then remove them.
    – Mai Hai
    Nov 23, 2021 at 4:04
  • 4
    @GeorgeOgden how does a file/folder get the ~ at the start to begin with? I had just one folder with that in my Python directory.
    – Azurespot
    May 17, 2022 at 21:27
  • 5
    It was just a matter of removing files in c:\python310\lib\site-packages that started with a ~. May 27, 2022 at 18:03

Not the answer you're looking for? Browse other questions tagged or ask your own question.