Mac os系统中在conda虚拟环境中安装opencv-python

为了在Mac os系统中安装opencv折腾了两天,安装opencv-python这个步骤经常会在Building wheel for opencv-python (PEP 517) …这个地方出错,后来参考了一篇文章(很不幸翻不到了,向原作者表示抱歉),完美解决,只需一句话即可:

pip install --target=虚拟环境路径 opencv-python -i 下载通道

pip install --target=/anaconda3/envs/py36_openCV/lib/python3.6/site-packages opencv-python -i https://pypi.doubanio.com/simple

你可能感兴趣的:(Python报错记录,Python基础,opencv,python,macos)