强化学习问题(7)--- Python和Pytorch,Tensorflow的版本对应

1.问题

      之前下载的python3.8,在对应Pytorch和Tensorflow时没太在意版本,在运行一些代码时,提示Pytorch和Tensorflow版本过高,直接降下来,有时候又和Python3.8不兼容,所以又在虚拟环境搞一个Pyhon3.7,下载一些低版本的Pytorch和Tensorflow。

      代码环境要求如下:

2.解决   

2.1Pytorch版本对应

1.Python安装torch(含torch和torchvision对应版本)_你好,明天,,的博客-CSDN博客

2.1Tensorflow版本对应 

安装代码

pip install tensorflow==1.14.0 -i https://pypi.tuna.tsinghua.edu.cn/simple 

1.TensorFlow API Versions  |  TensorFlow v2.14.0

2.tensorflow版本与python版本不相容的问题_tensorflow-2.9.1 python 3.11-CSDN博客 

3.anaconda和python对应关系

 anaconda python 版本对应关系_anaconda对应python版本-CSDN博客

猜你喜欢

转载自blog.csdn.net/weixin_48878618/article/details/133974256