安装步骤
- 安装python
考虑到系统稳定性,准备安装python 3.5版。程序中要用到其他包和模块,例如pip、numpy、pillow。因此选择采用安装Anaconda的方式,安装Anaconda,同时就自动集成化安装了这些包。安装完Anaconda.
Anaconda的清华镜像安装地址:https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/
可以用conda list查看已安装的模块包括哪些及其对应版本。
C:\Users\Administrator>conda list;
2. 安装tensorflow
使用pip安装tensorflow
pip install tensorflow
安装时可能会出现提示需要升级pip版本
Could not find a version that satisfies the requirement tensorflow(from versions:)No matching distribution found for tensorflow
You are using pip version 8.1.2, however version 9.0.1 is available.
You should consider upgrading via the ‘python -m pip install --upgrade pip’ command
若出现类似提示,升级pip
python -m pip install --upgrade pip
然后再一次安装tensorflow
pip install tensorflow
版本说明
Windows 7 64位
Python 3.5.2
Anocoda3 4.2.0 64-bit
tensorflow 1.12.0