pip 安装 tensorflow 时,出现异常提示[requirement setuptools || cudart64_101.dll]

简介

安装tensorflow的时候遇到很多坑, 记录一下

错误

(1). 版本异常

tensorboard 2.1.1 has requirement setuptools>=41.0.0, but you'll have setuptools 40.2.0 which is incompatible.

google-auth 1.14.2 has requirement setuptools>=40.3.0, but you'll have setuptools 40.2.0 which is incompatible.

(2). 缺少cudart64_101.dll

2020-05-08 11:27:04.449682: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cudart64_101.dll'; dlerror: cudart64_101.dll not found

2020-05-08 11:27:04.454449: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.

解决

问题1的问题, setuptools 版本太旧

  办法1, 强制安装,命令如下:

pip install --ignore-installed tensorflow

  办法2, 更新版本, 命令:

pip install --ignore-installed  setuptools

 问题2, 缺少 'cudart64_101.dll'

去官网下载对应的驱动, 传送门

 

 

感谢您的阅读!如果文章中有任何错误,或者您有更好的理解和建议,欢迎和我联系!

你可能感兴趣的:(tensorflow,tensorflow,install,安装,教程)