使用清华园安装pytorch、TensorFlow 2.0
1、pytorch安装
一、你可以通过官网去下载
pytorch官网链接.
可以像我这样选择,但是这样选择代表你不选择GPU,如果需要GPU运行代码,可以考虑前面的两个
二、清华园安装,速度很快
这个地方选择上面的那个复制下来之后加在之前
xxx -i https://pypi.tuna.tsinghua.edu.cn/simple
2、TensorFlow 2.0安装
清华园镜像
pip install tensorflow-gpu==2.0.0 -i https://pypi.tuna.tsinghua.edu.cn/simple
上面两个都可以直接在pycharm下面安装
3、普通包的安装
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple xxx(包名)
例如:
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple opencv-python