No module named pkg_resources

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

    I had this problem when I had activated my virtualenv as a different user than the one who created it. It seems to be a permission problem. I discovered this when I tried the answer by @cwc and saw this in the output:

    Installing easy_install script to /path/env/bin
    error: /path/env/bin/easy_install: Permission denied
    

    Switching back to the user that created the virtualenv, then running the original pip install command went without problems. Hope this helps!

提交回复
热议问题