对于 CPU 版本
pip3 install –upgrade tensorflow
对于 GPU 版本:
pip3 install –upgrade tensorflow-gpu
【TensorFlow | 升级】TensorFlow 1.0 发布
1. 安装
step 1:
$ pip install tensorflow # Python 2.7; CPU support (no GPU support) $ pip3 install tensorflow # Python 3.n; CPU support (no GPU support) $ pip install tensorflow-gpu # Python 2.7; GPU support $ pip3 install tensorflow-gpu # Python 3.n; GPU support
step 2(可选),如果第一步执行失败,可尝试对 tensorflow 编译好好的二进制(binary)形式进行安装:
$ sudo pip install --upgrade tfBinaryURL # Python 2.7 $ sudo pip3 install --upgrade tfBinaryURL # Python 3.n
注意,要将
tfBinaryURL
替换为the_url_of_the_tensorflow_python_package 对应的 url 地址;
references
- linux 下的安装:Installing TensorFlow on Ubuntu