Ananoconda import cv2 ModuleNotFoundError无法安装opencv(没有cv2包)

Ananoconda import cv2 ModuleNotFoundError无法安装opencv(没有cv2包)_第1张图片

Solving environment: failed with initial frozen solve. Retrying with flexible solve.
参考:
https://github.com/conda/conda/issues/9367

我是如此解决的

conda create --name FaceMaskDetection2 python=3.7
conda activate FaceMaskDetection2
conda install pytorch torchvision cpuonly -c pytorch#因为我用pytorch,cpu(无gpu)win10
conda install -c menpo opencv

Ananoconda import cv2 ModuleNotFoundError无法安装opencv(没有cv2包)_第2张图片

你可能感兴趣的:(Ananoconda import cv2 ModuleNotFoundError无法安装opencv(没有cv2包))