1.创建环境 conda create -n tensorflow python=3.6

2.安装指定版本tensorflow pip install tensorflow==1.10.0

3.安装对应版本keras pip install keras==2.0.0

老电脑需要版本低的,tensorflow 1.1.9及1.5.0

常见问题:

安装tensorflow遇到 ReadTimeoutError(self._pool, None, “Read timed out.”)问题的解决方案如下:

  1. 进入到C:\users目录下的管理目录, 然后创建一个pip.ini文件
  2. 往文件中添加以下内容(推荐使用 Notepad++),安装
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple

[https://blog.csdn.net/qq_43872529/article/details/103396037]
tensorflow与keras对应版本问题

Logo

汇聚全球AI编程工具,助力开发者即刻编程。

更多推荐