tensorflow安装问题

pip install tensorflow 报错

1、输入pip install tensorflow 报错。

You are using pip version 9.0.1, however version 21.2.4 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

解决办法

运行一下命令 python -m pip install -U pip

运营后界面如下:

tensorflow安装问题

在输入 pip install tensorflow继续安装

2、安装过程中wrapt包出现错误

 ERROR: Cannot uninstall 'wrapt'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

解决办法:

 pip install -U --ignore-installed wrapt enum34 simplejson netaddr

wrapt包安装成功。

3、numpy安装出现问题:

d:\\python\\anaconda3\\lib\\site-packages\\numpy' -> 'C:\\Users\\H84173~1\\AppData\\Local\\Temp\\pip-w1qf94la-uninstall\\python\\anaconda3\\lib\\site-packages\\numpy'

解决办法:先关掉所有运行python的服务。然后运行

pip install tensorflow -ignore-installed numpy

安装成功了。

上一篇:tensorflow学习——01一个神经元的网络


下一篇:tensorflow卷积神经网络详解(2)