Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Why such an error occurs when using pip install to install the package?

WARNING: Ignoring invalid distribution -ip (d:\python_3.9.7\lib\site-packages) is displayed during the installation process

why does this appear?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

This occurs due to files names with the ‘~’ prefix in site-packages. Please remove those files / folders. It will solve your problem.

You can list them (linux, mac) with

ls -a /xx/xx/xx/lib/pythonx.x/site-packages | grep "^~"

on windows I would strongly recommend the linux subsystem for windows for this kind of actions. But of course this can also be done via the explorer or the cmd

Then remove files/folders prefixed by ‘~’.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading