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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With