tensorflow_gpu在windows上安装
pip install tensorflow_gpu会很慢
所以使用清华镜像
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ --upgrade tensorflow-gpu
安装多个包的命令:
pip install --ignore-installed --upgrade tensorflow matplotlib pandas sklearn scipy seaborn
补充一下若安装指定版本
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ --upgrade tensorflow-gpu==1.12.0
这儿需要使用两个等于号。
安装过程中出现如下错误:
Cannot uninstall ‘wrapt’. It is a distutils installed project…
发现’wrapt’是已经安装了的
所以我们需要更新
使用如下命令:
输入 pip install -U --ignore-installed wrapt enum34 simplejson netaddr
完成安装!