No module named pkg_resources

后端 未结 30 2838
一向
一向 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:06

    After trying several of these answers, then reaching out to a colleague, what worked for me on Ubuntu 16.04 was:

    pip install --force-reinstall -U setuptools
    pip install --force-reinstall -U pip
    

    In my case, it was only an old version of pillow 3.1.1 that was having trouble (pillow 4.x worked fine), and that's now resolved!

提交回复
热议问题