No module named pkg_resources

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

    I had this problem today as well. I only got the problem inside the virtual env.

    The solution for me was deactivating the virtual env, deleting and then uninstalling virtualenv with pip and reinstalling it. After that I created a new virtual env for my project, then pip worked fine both inside the virtual environment as in the normal environment.

提交回复
热议问题