搭建Vue+Django环境过程中遇到的 问题

启动后端服务后,程序会检测没有安装的包,根据提示进行安装,一般是 pip  install +报错包名,常见的报错信息  和比较特殊的处理如下


(1)安装django-suite:
pip install https://github.com/darklow/django-suit/tarball/v2


(2)安装crypto pip install pycrypto


(3)提示: error: command 'cl.exe' failed: No such file or directory
使用这个:pip3 install pycryptodome  OK了


(4)报错?: (corsheaders.E013) Origin '*' in CORS_ORIGIN_WHITELIST is missing scheme or netloc
在setting中注释掉 CORS_ORIGIN_WHITELIST = ('*') 即可


(5)pip install django-rest-swagger


(6)pip install djangorestframework


(7)本地安装报错:django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3.
D:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\Lib\site-packages\django\db\backends\mysql\base.py 中注释掉 35,36行


(8)ModuleNotFoundError: No module named 'crontab'
D:\03 code\automation_platform\automation_platform\automation_platform> pip install django-crontab
或者django-crontab 不对就是 python-crontab


(9)pip install pycrypto报错
参照: https://my.oschina.net/mengyoufengyu/blog/1524422 使用方法1


(10)AttributeError: 'str' object has no attribute 'decode'
https://blog.csdn.net/qq_41630218/article/details/89631835


(11)python3安装docx模块出现Import Error: No module named 'exceptions'
参考:https://www.cnblogs.com/chaihy/p/10256513.html

 

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值