0

i tried to use this command in cmd to install module certifi:

pip install certifi

But it throws some warning like this:

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

How can i fix it and install certifi ? (Python 3.9.6 )

Hoàng Huy
  • 31
  • 8
  • Does this answer your question? [pip how to remove incorrectly installed package with a leading dash: "-pkgname"](https://stackoverflow.com/questions/56973015/pip-how-to-remove-incorrectly-installed-package-with-a-leading-dash-pkgname) – Marcelo Zárate Dec 09 '21 at 13:48

2 Answers2

0

go to directory of site package and remove all files that start with tilde ~ and there is a problem with the package named ip

0

Manually delete the following folder:

c:\python39\lib\site-packages\ip

And every file that starts with ~ and try again

Marcelo Zárate
  • 296
  • 5
  • 21