1:no module named cv2
pip install opencv-python
2:no module named albumentations
pip install albumentations
3:ImportError: cannot import name '_validate_lengths'
查看错误代码位置:C:\ProgramData\Anaconda3\Lib\site-packages\skimage\util\arraycrop.py文件
解决方案:
打开刚才定位到的文件,修改前:
import numpy as np
from numpy.lib.arraypad import _validate_lengths
修改后
import numpy as np
from distutils.version import LooseVersion as Version
old_numpy = Version(np.__version__) < Version('1.16')
if old_numpy:
from numpy.lib.arraypad import _validate_lengths
else:
from numpy.lib.arraypad import _as_pairs
4:from scipy.linalg import _fblas
参考链接:https://blog.csdn.net/bevison/article/details/78581543
解决方案:
1):到https://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy,
2):根据自己的python版本和numpy版本找到对应的文件下载对应的whl文件
3):pip install 此安装文件
(๑•ᴗ•๑)觉得有用,赏个植发的小钱钱。(๑•ᴗ•๑)
来源:oschina
链接:https://my.oschina.net/u/4261553/blog/4308582