错误集
桑桑在路上
微信搜一搜【梓莘】关注这个正在成长的程序员,目前从事java后端开发工作,想转数据分析方向,期望得到大家的指点。
zero-->hero理性+理智。记住一句话:越努力,越幸运。犯其至难,图其至远。努力规划,实现自我。↖(^ω^)↗
展开
-
【错误集】 MonkeyPatchWarning: Monkey-patching ssl after ssl has already been imported may lead to errors
原代码import geventfrom gevent.queue import Queue,Emptyimport timeimport requests#把下面有可能有IO操作的单独坐上标记from gevent import monkeymonkey.patch_all()#将IO转为异步执行的函数错误MonkeyPatchWarning: Monkey-patching ssl after ssl has already been imported may lead to e原创 2021-02-05 11:19:02 · 2054 阅读 · 1 评论 -
【问题集】【Django】django.core.exceptions.ImproperlyConfigured: mysqlclient 1.4.0 or newer is required;
错误:【Django】django.core.exceptions.ImproperlyConfigured: mysqlclient 1.4.0 or newer is required;解决方案:init.py文件修改import pymysqlpymysql.version_info = (1, 4, 13, "final", 0)pymysql.install_as_MySQLdb() # 使用pymysql代替mysqldb连接数据库...原创 2021-01-19 16:52:32 · 152 阅读 · 0 评论 -
【问题集】Failed to connect to 127.0.0.1 port 1080: Connection refused
出现这个问题的原因就是设置了动态代理,o(╥﹏╥)o使用git查看动态代理git config --global http.proxygit config --global https.proxy有返回值,取消代理取消代理git config --global --unset http.proxygit config --global --unset httpx.proxy到此为止,完美解决。...原创 2021-01-11 11:11:28 · 303 阅读 · 0 评论 -
【ERROR】ValueError: Of the four parameters: start, end, periods, and freq, exactly three must be spec
ValueError: Of the four parameters: start, end, periods, and freq, exactly three must be specified错误写法:print(pd.date_range(start='20201001',end='20201203',periods=5,freq='2D'))start,end,periods,freq这4个参数只能设置3个,否则会报错pandas中源码如下: if com.count_not_none(原创 2020-12-03 17:19:06 · 1395 阅读 · 0 评论