No matter which package I\'m trying to install, I get this error:
error: invalid command \'egg_info\'
----------------------------------------
Cleaning up.
For me reinstalling and then upgrading the pip worked.
Reinstall pip by using below command or following link How do I install pip on macOS or OS X?
curl https://bootstrap.pypa.io/get-pip.py -o - | python
Upgrade pip after it's installed
pip install -U pip
In my case, I had to uninstall pip and reinstall it. So I could install my specific version.
sudo apt-get purge --auto-remove python-pip
sudo easy_install pip
I was trying to install pyautogui and followed instructions from the first answer but was unsuccessful. The difference for me was running pip install pillow
and then running pip install pyautogui
I don't know what this means, but I hope this helps some people out.
I'll add this in here as my problem had something todo with my virtualenv
:
I hadn't activated my virtual environment and was trying to install my requirements, this ultimately led to my install failing and throwing this error message.
So make sure you activate your virtualenv!