![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
errors
Gangpei
流火
展开
-
解决from sklearn.externals import joblib报错问题
BEGIN:原因是 joblib不需要从sklearn中导入了,直接使用import joblib就OK啦!!_END.原创 2020-11-12 12:49:15 · 1499 阅读 · 1 评论 -
python pip 时 出现UnicodeDecodeError: ‘utf8‘ codec can‘t decode byte 0xa1 in position 12: invalid start
BEGIN:在使用pip安装时出现编码问题,如图:找到python对应虚拟环境下的\lib\site-packages\pip_vendor\six.py文件修改第935行(一开始是935行我这里是936行是因为我此前修改了)如图:修改为: if isinstance(s, binary_type): try: return s.decode(encoding, errors) except Exception as err:原创 2020-09-11 17:39:11 · 964 阅读 · 0 评论 -
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (1118, u‘Row size too large (> 8126). Chan
BEGIN:话不多说,解决方法如下:[mysqld]innodb_log_file_size = 512Minnodb_strict_mode = 0END.原创 2020-09-09 14:43:16 · 393 阅读 · 0 评论 -
Python3下安装MySQL-python 出现fatal error C1083: 无法打开包括文件: “config-win.h”: No such file or directory
BEGIN:安装MySQL-python时出现问题:fatal error C1083: 无法打开包括文件: “config-win.h”: No such file or directory很遗憾告诉你,如果你一直固执的安装,一定不会成功的!MySQL-python只有python2.x版本的,python3下安装 mysqlclient才是正途,苦海无边,回头是岸,希望能帮助到你第三方库下载网址:https://www.lfd.uci.edu/~gohlke/pythonlibs/END..原创 2020-09-09 14:17:24 · 980 阅读 · 0 评论 -
表单传文件出现 AttributeError: ‘str‘ object has no attribute ‘filename‘
BEGIN:出现问题时:解决方法:enctype属性enctype这个属性管理的是表单的MIME(Multipurpose Internet Mail Extensions)编码,共有三个值可选:1、application/x-www-form-urlencoded —默认值,作用是设置表单传输的编码,不能用于上传文件eg: AJAX中xmlHttp.setRequestHeader(“Content-Type”,“application/x-www-form- urlencoded”),原创 2020-09-08 15:33:07 · 1497 阅读 · 1 评论 -
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host=‘files.pythonhosted.org‘,
pip安装第三方库时出现read timed out 问题BEGIN:问题:安装requests第三方库出现超时问题pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host=‘files.pythonhosted.org’, port=443): Read timed out.解决方案:pip --default-timeout=1000 install -U requestsEND....原创 2020-09-08 14:52:39 · 178 阅读 · 0 评论