我已经使用安装了 django rest 框架pip install djangorestframework
但当我运行“python3 manage.py sycndb”时,我仍然收到此错误:
导入错误:没有名为“rest_framework”的模块
我使用的是python3,这是我的问题吗?
您需要使用 pip3 安装 django Rest 框架(pip for python 3):
pip3 install djangorestframework
有关如何安装 pip3 的说明可以找到here https://stackoverflow.com/questions/6587507/how-to-install-pip-with-python-3
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)