Windows下安装TensorFlow的相关问题解答

提醒:对于使用Python主要用于处理数据分析问题的伙伴,建议最好先安装anaconda,下载地址:https://www.anaconda.com/download/。安装方法也很简单,一路同意就可以,只是千万记得勾选添加环境路径。

下面主要讲安装TensorFlow的相关问题:

一、怎么安装TensorFlow

安装方法1:

打开cmd窗口输入:pip install tensorflow

安装方法2:

1.先下载所需要的TensorFlow包,下载地址:https://pypi.org/project/tensorflow/1.11.0rc1/#history(下载方法:先点击左边的【release history】,选中想要的版本;再点击【download files】),确认好下载路径

2.打开cmd窗口输入:python -m pip install (后面添加下载路径和安装包名称)

二、怎么更新TensorFlow

打开cmd窗口输入:pip install --upgrade tensorflow

三、怎么卸载TensorFlow

打开cmd窗口输入:pip uninstall tensorflow

四、怎么降级TensorFlow到指定版本1.7.0

先删除现有版本,然后在cmd中输入:pip install tensorflow==1.7.0

五、怎么查看TensorFlow版本

打开cmd窗口依次输入:

python

import tensorflow as tf

tf.__version__

六、怎么查询tensorflow安装路径

tf.__path__ 

猜你喜欢

转载自blog.csdn.net/zsc201825/article/details/82799859