No module named pkg_resources

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

    In my case, I had 2 python versions installed initially and later I had deleted the older one. So while creating the virtual environment

    virtualenv venv
    

    was referring to the uninstalled python

    What worked for me

    python3 -m virtualenv venv
    

    Same is true when you are trying to use pip.

提交回复
热议问题