No module named pkg_resources

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

    For me, it turned out to be a permissions problem on site-packages. Since it's only my dev environment, I raised the permissions and everything is working again:

    sudo chmod -R a+rwx /path/to/my/venv/lib/python2.7/site-packages/
    

提交回复
热议问题