欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

解决安装tensorflow的问题

程序员文章站 2024-03-19 15:15:40
...

1、注意、一般来说直接pip install tensorflow都会报错

2、可以直接安装

pip install --ignore-installed six tensorflow-gpu==1.13.1 -i https://pypi.doubanio.com/simple

3、出现报错解决方法

1>、【异常】tensorboard 1.14.0 has requirement setuptools>=41.0.0, but you'll have setuptools 40.6.3
首先更新 wrapt
	pip install --ignore-installed wrapt
再次更新 setuptools
	pip install --ignore-installed  setuptools
安装 tensorflow
	pip install --ignore-installed tensorflow
2>、ERROR: Cannot uninstall ‘Werkzeug’. 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 --ignore-installed six tensorflow-gpu==1.13.1 -i https://pypi.doubanio.com/simple
3>、HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out
	网络原因导致的安装超时,重新下载。设置超时时间延长后重新下载。
	下载命令后添加参数 --default-timeout=1000,时间可以自定义。