创建指定python版本的虚拟环境
conda create --name tf2 python=3.6
激活虚拟环境
conda activate tf2
下载指定版本的tensorflow(指定源会快)
pip install -i https://pypi.mirrors.ustc.edu.cn/simple/ tensorflow==1.12.0
下载指定版本keras
pip install -i https://pypi.mirrors.ustc.edu.cn/simple/ pip install keras==2.2.0
下载指定版本cv2
pip install -i https://pypi.mirrors.ustc.edu.cn/simple/ opencv-python==3.4.2.16
报错:scipy版本太高
别人建议的1.2.1也太高,
试了好几次,选择了1.1.0
pip install -i https://pypi.mirrors.ustc.edu.cn/simple/ scipy==1.1.0
可以运行了。