在打算学习yolo算法,发现使用conda、pip安装opencv-python都报错:
conda提示:PackagesNotFoundError: The following packages are not available from current channels。
尝试过换源,但还是不行。
pip提示:Could not fetch URL https://pypi.org/simple/opencv-python/......
ERROR: Could not find a version that satisfies the requirement opencv-python (from versions: none)
ERROR: No matching distribution found for opencv-python
这时可以临时换源,并且信任host:
指令:
pip install opencv-python -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com