1.问题:Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Library/Python/3.7/site-packages'
解决方案:
sudo 所执行的指令就好像是 root 亲自执行。
sudo pip3 install opencv-python
2.让系统默认使用python3
(1).查看python3的安装路径
which python3
(2).执行命令
vi ~/.bash_profile
(3) # 添加这一行 (引号中的路径为自己电脑的路径)
alias python="/usr/local/bin/python3"
3.ERROR: Could not find a version that satisfies the requirement cv2 (from versions: none)
ERROR: No matching distribution found for cv2
解决方案: