目标检测:windows:python遇到的各种问题记录

0:no module named cv2

pip install opencv-python

1:ImportError: libSM.so.6: cannot open shared object file: No such file or directory

apt-get install libsm6

2:ImportError: libXrender.so.1: cannot open shared object file: No such file or directory

apt-get install libxrender1

3:no module named albumentations

pip install albumentations

4:ImportError: cannot import name '_validate_lengths'

目标检测:windows:python遇到的各种问题记录_第1张图片

 查看错误代码位置:C:\ProgramData\Anaconda3\Lib\site-packages\skimage\util\arraycrop.py文件

参考链接:https://blog.csdn.net/TYtangyan/article/details/91442878?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.nonecase&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.nonecase

解决方案:

打开刚才定位到的文件,修改前:

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

5:from scipy.linalg import _fblas    

目标检测:windows:python遇到的各种问题记录_第2张图片

参考链接:https://blog.csdn.net/bevison/article/details/78581543

 解决方案:

1):到https://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy,

2):根据自己的python版本和numpy版本找到对应的文件下载对应的whl文件

3):pip install 此安装文件   

 

6:no moduel named 'typing_extensions'

pip install typing_extensions

 

7:torchvision installation problem: avcodec-58.dll not found

参考链接:

https://github.com/pytorch/vision/issues/1877

http://blog.gregzaal.com/how-to-install-ffmpeg-on-windows/

解决方案:

1):https://ffmpeg.zeranoe.com/builds/ 下载对应版本的动态库

2):将bin文件添加到系统环境变量

3):重启自己的cmd窗口

目标检测:windows:python遇到的各种问题记录_第3张图片

 

 

                                                            (๑•ᴗ•๑)觉得有用,赏个植发的小钱钱。(๑•ᴗ•๑)

   

你可能感兴趣的:(目标检测:windows:python遇到的各种问题记录)