Solution: Cannot remove entries from nonexistent file easy-install.pth

I got this the other day while doing a pip install:

Cannot remove entries from nonexistent file c:\python36\lib\site-packages\easy-install.pth

I searched around a bit and couldn’t find a solution. --ignore-installed didn’t work for me.

Then I actually read the error message and realized that pip was looking for a file that wasn’t there.

I just created the file as an empty file, i.e.: touch c:\python36\lib\site-packages\easy-install.pth and the error went away.

Not sure how I got in that state, but that fixed it, so moving on.

Hope this helps,
Jon