ModuleNotFoundError: No module named ‘cv2’
安装opencv
from PIL import image报错
安装pillow
No module named ‘torch’
安装pytorch
No module named ‘torchvision’
pip install torchvision
ImportError: cannot import name ‘container_abcs’ from ‘torch._six’ (/home/em/anaconda3/envs/vid/lib/python3.7/site-packages/torch/_six.py)
因为1.8版本之后container_abcs就已经被移除了。
方法一:将pytorch改为1.8版本
No module named ‘scipy’
安装scipy
No module named ‘dominate’
安装dominate
module ‘torch._C’ has no attribute ‘_cuda_setDevice’
python
最新推荐文章于 2023-10-27 16:45:21 发布