卖兜 发表于 2024-3-18 14:00:38

opencv调用镜头失败

如图,每次打开镜头都是失败,之前还正确的。。。错误如下,求解答



Fatal Python error: init_import_size: Failed to import the site module
Python runtime state: initialized
Traceback (most recent call last):
File "C:\Users\admin\Documents\mindplus-py\environment\Python3.8.5-64\lib\site.py", line 580, in <module>      
    main()
File "C:\Users\admin\Documents\mindplus-py\environment\Python3.8.5-64\lib\site.py", line 567, in main
    known_paths = addsitepackages(known_paths)
File "C:\Users\admin\Documents\mindplus-py\environment\Python3.8.5-64\lib\site.py", line 350, in addsitepackages
    addsitedir(sitedir, known_paths)
File "C:\Users\admin\Documents\mindplus-py\environment\Python3.8.5-64\lib\site.py", line 208, in addsitedir   
    addpackage(sitedir, name, known_paths)
File "C:\Users\admin\Documents\mindplus-py\environment\Python3.8.5-64\lib\site.py", line 164, in addpackage   
    for n, line in enumerate(f):
UnicodeDecodeError: 'gbk' codec can't decode byte 0x9d in position 235: illegal multibyte sequence





DFEDU 发表于 2024-3-18 16:04:36

https://mc.dfrobot.com.cn/thread-316617-1-1.html

卖兜 发表于 2024-3-19 13:29:17

DFEDU 发表于 2024-3-18 16:04
https://mc.dfrobot.com.cn/thread-316617-1-1.html

感谢感谢!

字数补丁字数补丁
页: [1]
查看完整版本: opencv调用镜头失败