1 环境配置
1.1 操作系统
Tensorflow 2.2 所兼容的操作系统有:
- Ubuntu 16.04或更高版本(64位)m
- Windows 7或更高版本(64位,需Visual C++)
- MacOS 10.12.6 (Sierra) 或更高版本(64位, 不支持GPU)
- Raspbian 9.0或更高版本(64位)
1.2 开发环境
1.2.1 编译环境
Tensorflow 2.2兼容的64位Python版本:Python 3.5~3.8。
我用的是20年2月份发布的Anaconda作为Python的开发环境,python版本是新版anaconda自带的python3.7,操作系统用的是win10 64位的操作系统
1.2.2 安装Visual C++
Visual C++ 下载地址:https://support.microsoft.com/zh-cn/help/2977003/the-latest-supported visual-c-downloads
2 tensorflow CPU版安装
- 安装anaconda:下载地址 https://www.anaconda.com/products/individual
- pip升级
在在Anaconda Prompt中执行:
python -