No module named pkg_resources

后端 未结 30 2882
一向
一向 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 07:51

    I ran into this problem after updating my Ubuntu build. It seems to have gone through and removed set up tools in all of my virtual environments.

    To remedy this I reinstalled the virtual environment back into the target directory. This cleaned up missing setup tools and got things running again.

    e.g.:

    ~/RepoDir/TestProject$ virtualenv TestEnvironmentDir
    

提交回复
热议问题