Python错误合集
Python错误合集
BurningSilence
这个作者很懒,什么都没留下…
展开
-
python错误合集:Cannot uninstall ‘six‘.
python错误合集:Cannot uninstall 'six'.错误信息出处解决错误信息Cannot uninstall 'six'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.出处python安装paddlehub时,出现包冲突,需要新的six包原创 2021-02-25 13:10:06 · 254 阅读 · 0 评论 -
python错误合集:SSLError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)‘)
@[TOC](SSLError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)’))错误信息Could not fetch URL https://pypi.tuna.tsinghua.edu.cn/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.tuna.t原创 2021-02-01 14:20:04 · 2285 阅读 · 0 评论 -
python错误合集:urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED]
错误信息:urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)>使用urllib下载文件时,出现认证失败的错误出处:在使用collections包时import easyocrreader = easyocr.Reader(['en'])原创 2021-01-21 11:09:14 · 849 阅读 · 0 评论 -
python报错合集:UnicodeEncodeError: ‘latin-1‘ codec can‘t encode characters
UnicodeEncodeError: 'latin-1' codec can't encode characters错误信息出处解决错误信息UnicodeEncodeError: 'latin-1' codec can't encode characters in position 0-3: ordinal not in range(256)出处Linux系统中,在使用PIL的ImageDraw进行画图时,往图片上写文本,文本中有中文,其他情况也会报这个错,基本都是中文或者编码问题draw =原创 2020-12-22 11:01:02 · 4092 阅读 · 1 评论 -
python错误合集:Using or importing the ABCs from ‘collections‘ instead of from ‘collections.abc‘
错误信息:DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3,and in 3.9 it will stop working弃用警告:从collections中导入ABCs已被弃用,并在python3.3和python3.9中将停止使用,可使用collections.abc代替出处:在使用原创 2020-12-21 14:29:27 · 3195 阅读 · 1 评论 -
cv2.error: OpenCV(4.2.0) /io/opencv/modules/imgproc/src/imgwarp.cpp:3391
问题全部为:cv2.error: OpenCV(4.2.0) /io/opencv/modules/imgproc/src/imgwarp.cpp:3391: error: (-215:Assertion failed) src.checkVector(2, CV_32F) == 4 && dst.checkVector(2, CV_32F) == 4 in function 'getPerspectiveTransform'出现在使用cv2.getPerspectiveTransfo原创 2020-12-07 17:19:16 · 4285 阅读 · 0 评论 -
python错误合集:IndexError: invalid index to scalar variable.
IndexError: invalid index to scalar variable.无效的索引一般出现在np数组索引错误如下举例: a = np.array([[1, 2], [3, 4], [5, 6]]) print(a[0][0][1])运行后,报错:IndexError: invalid index to scalar variable.所以出现上述错误时,要检查下是不是索引不对,如本来二维数组,使用了三层索引。...原创 2020-12-07 16:00:59 · 58444 阅读 · 0 评论