栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

错误记录-11.9

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

错误记录-11.9

目录
      • Git报错解决:fatal: unable to access 'https://github.com/.......': OpenSSL SSL_read: Connection was reset, errno 10054
      • io.UnsupportedOperation: File not open for writing
      • python-Levenshtein安装出现error: Microsoft Visual C++ 14.0 is required.
      • AttributeError: module 'matplotlib.cbook' has no attribute 'iterable'

Git报错解决:fatal: unable to access ‘https://github.com/…’: OpenSSL SSL_read: Connection was reset, errno 10054

添加链接描述

解除ssl验证后,再次git即可
git config --global http.sslVerify "false"

io.UnsupportedOperation: File not open for writing


添加链接描述

修改,打开文件时添加上 w+

filtered_file = open("xxx.txt", "w+")
python-Levenshtein安装出现error: Microsoft Visual C++ 14.0 is required.


我下载了Visual Studio也还是不行不知道怎么回事,参考

然后直接下载了whl文件使用pip安装pip install xxxpython_Levenshtein-0.12.0-cp36-cp36m-win_amd64.whl 巨快!参考

python_Levenshtein.whl文件下载地址

AttributeError: module ‘matplotlib.cbook’ has no attribute ‘iterable’

matplotlib包的版本太新,重新安装版本较旧的matplotlib包
pip install matplotlib==2.2.3
参考

另外有评论说升级 networkx版本 也可以,但是我没有尝试

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/461845.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号