'Pip and Python disagree on what packages are installed
Recently I tried to download a package through pip
pip install -U discord-py-interactions
(I also tried pip install discord-py-interactions, not sure what
the difference is but they both seemed to do the same thing)
And it worked, saying it had successfully installed it. But during the installation (and the installation of all other packages) the console was littered with "WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)" When I tried importing it, python said that it could not find the package. I dug a bit deeper and found that pip was storing all my downloaded packages in that c:\python310\lib\site-packages directory. However, the folder was missing tons of packages that I had previously downloaded and which still worked just fine, and the packages which were in the directory did not work. It seems like either my IDE (Wing Personal) is drawing from the wrong folder, or pip is installing to the wrong folder. But I don't know why this suddenly started happening, I've been coding in python for over a year on the same computer and previously all my downloads have worked just fine. Any fixes for this problem?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
