Django Rest Framework — no module named rest_framework

后端 未结 21 870
夕颜
夕颜 2021-02-01 00:23

I\'ve installed django rest framework using pip install djangorestframework yet I still get this error when I run \"python3 manage.py sycndb\":

21条回答
  •  庸人自扰
    2021-02-01 01:00

    Yeh for me it was the python version as well ...
    much better to use pipenv ...
    create a virtual env using using python 3 ...

    install pipenv : pip3 install pipenv
    create the virtualenv: pipenv --python 3
    activate the virtual env: pipenv shell

提交回复
热议问题