Django Rest Framework — no module named rest_framework

后端 未结 21 1211
夕颜
夕颜 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 00:49

    In my case, my problem was different. I was creating in my bash_profile an alias like:

    alias python=/usr/local/bin/python3
    

    And even if I activate my environment, when I ran the command, the python interpreter accessed was from the system and not from my environment.

    I just removed the alias from bash_profile and it worked fine.

提交回复
热议问题