Can't install via pip because of egg_info error

后端 未结 10 1006
-上瘾入骨i
-上瘾入骨i 2020-11-22 13:58

No matter which package I\'m trying to install, I get this error:

error: invalid command \'egg_info\'

----------------------------------------
Cleaning up.         


        
相关标签:
10条回答
  • 2020-11-22 14:39

    For me reinstalling and then upgrading the pip worked.

    1. 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

    2. Upgrade pip after it's installed

      pip install -U pip

    0 讨论(0)
  • 2020-11-22 14:41

    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 
    
    0 讨论(0)
  • 2020-11-22 14:42

    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.

    0 讨论(0)
  • 2020-11-22 14:49

    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!

    0 讨论(0)
提交回复
热议问题