No module named pkg_resources

后端 未结 30 2450
一向
一向 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 07:53

    I had this error earlier and the highest rated answer gave me an error trying to download the ez_setup.py file. I found another source so you can run the command:

    curl http://peak.telecommunity.com/dist/ez_setup.py | python
    

    I found that I also had to use sudo to get it working, so you may need to run:

    sudo curl http://peak.telecommunity.com/dist/ez_setup.py | sudo python
    

    I've also created another location that the script can be downloaded from:

    https://gist.github.com/ajtrichards/42e73562a89edb1039f3

提交回复
热议问题