Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

python

pip

Whenever I install a pip library in Python, I get a series of warnings. For example :

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

How can I avoid getting these warnings ?

like image 227
Tom Avatar asked Nov 17 '25 02:11

Tom


1 Answers

the warning below:

enter image description here

can fix as follows.

go to the lib\site-packages folder, then look for folders starting with ~ like what you see in the picture below

enter image description here

and mentioned in that warning, then remove them

this can be fixed this warning and no longer appears

like image 58
Chafik Boulealam Avatar answered Nov 18 '25 19:11

Chafik Boulealam