No module named pkg_resources

后端 未结 30 2480
一向
一向 2020-11-22 07:22

I\'m deploying a Django app to a dev server and am hitting this error when I run pip install -r requirements.txt:

Traceback (most recent call la         


        
30条回答
  •  遇见更好的自我
    2020-11-22 08:12

    None of the posted answers worked for me, so I reinstalled pip and it worked!

    sudo apt-get install python-setuptools python-dev build-essential 
    
    sudo easy_install pip 
    
    pip install --upgrade setuptools
    

    (reference: http://www.saltycrane.com/blog/2010/02/how-install-pip-ubuntu/)

提交回复
热议问题