Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pip "Ignoring invalid distribution" warning [duplicate]

For the past few pip package/module installs I have been performing in Windows 10 Command prompt, I am seeing warnings during the installation stating:

WARNING: Ignoring invalid distribution -jango (c:\users\myusername\appdata\roaming\python\python37\site-packages)

Background system info:
Python version 3.7
Pip version 21.1.1

What is the issue here, and how can I fix this? I looked into some other posts that faced similar issues, but was not able to find any good answers on how to solve it.

like image 708
Jub Avatar asked May 20 '21 03:05

Jub


1 Answers

Not sure how you would have gotten the django folder, only you can answer that! I'm assuming you mean "django" here not "jango" as "jango" isn't a package.

However if you delete the folder

c:\users\myusername\appdata\roaming\python\python37\site-packages\django (or jango, either one)

then this error will go away when using pip. You can then reinstall it again with pip if you decide that you need it. Obviously make sure nothing is in that folder that you've changed before you do this.

Another thing you could try is renaming the "jango" folder to "django" if it is indeed listed as "jango", perhaps the first letter was removed from the folder name by accident and this is now confusing pip.

like image 62
츄 plus Avatar answered Sep 20 '22 15:09

츄 plus