Tutorial Example

Fix Python pip WARNING: Ignoring invalid distribution -pencv-python – Python Tutorial

When we are using pip to install some python packages, we may find this warning: WARNING: Ignoring invalid distribution. In this tutorial, we will introduce you how to fix it.

This warning looks like:

How to fix this warning?

It is easy to fix this problem, we can open the directory site-packages and find folders reported in warning message, then delete them.

Especially, these invalid distribution packages start with symbol “~”.

For example, as to us, we will delete ~pencv_python-4.5.5.64.dist-info. Then, this warning will disappear.