No module named pkg_resources

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

    For me, this error was being caused because I had a subdirectory called "site"! I don't know if this is a pip bug or not, but I started with:

    /some/dir/requirements.txt /some/dir/site/

    pip install -r requirements.txt wouldn't work, giving me the above error!

    renaming the subfolder from "site" to "src" fixed the problem! Maybe pip is looking for "site-packages"? Crazy.

提交回复
热议问题