No module named pkg_resources

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

    sudo apt-get install --reinstall python-pkg-resources
    

    fixed it for me in Debian. Seems like uninstalling some .deb packages (twisted set in my case) has broken the path python uses to find packages

提交回复
热议问题