Removing the Ignoring invaild distribution -ip warning when running pip

Warning situation

When running pip install selenium, the following warning is emitted.

python-warning, Ignoring invaild distribution -ip

Cause

In the path shown after the message, there is a leftover directory whose name starts with -ip that should not be there. The directory was created temporarily and either was not cleaned up or was assigned an invalid name.

python-warning, Ignoring invaild distribution -ip directory check

Solution

Manually delete the directory whose name starts with -ip.

python-warning, Ignoring invaild distribution -ip directory deleted

** Once the directory is deleted, the WARNING disappears. **

python-warning, Ignoring invaild distribution -ip WARNING resolved after deletion