mac环境pycharm中安装opencv-python

pycharm中安装opencv-python,报错,Try to run this command from the system terminal. Make sure that you use the correct version of 'pip' installed for your Python interpreter located at '/usr/local/bin/python3.7'.

mac环境pycharm中安装opencv-python_第1张图片

在以下地址先下载好文件,再安装:https://pypi.tuna.tsinghua.edu.cn/simple/opencv-python/

我下载的是这个,

pip3 install 这个文件,安装成功了

怀疑是pycharm中python3.7用的pip还是指向python2.7的,所以安装失败

你可能感兴趣的:(python学习)