转载链接:
https://github.com/tensorflow/tensorflow/issues/10026

主要内容是:

conda install -c https://conda.anaconda.org/jjhelmus tensorflow

很明显,第一次还是失败了,本来以为可以一键配置完cuda和cudnn以及tensorflow_gpu,发现我还是想多了~
报错信息:

conda install -c https://conda.anaconda.org/jjhelmus tensorflow
Fetching package metadata .................
Solving package specifications: .Package plan for installation in environment /home/lyl/anaconda3/envs/gtf:The following NEW packages will be INSTALLED:bleach:         1.5.0-py35_0     https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/freecudatoolkit:    7.5-2            https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/freecudnn:          5.1-0            https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/freehtml5lib:       0.9999999-py35_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/freetensorflow:     0.12.0rc0-py35_0 jjhelmus                                               The following packages will be SUPERCEDED by a higher-priority channel:protobuf:       3.4.0-py35_0     https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free --> 3.1.0-py35_0         jjhelmus                                               tensorboard:    1.8.0-py35_0     aaronzs                                                 --> 1.7.0-py35hf484d3e_1 jjhelmus                                               tensorflow-gpu: 1.8.0-py35_0     aaronzs                                                 --> 1.0.1-py35_4         https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/freeProceed ([y]/n)? ycudatoolkit-7. 100% |####################################################################| Time: 0:00:27   8.83 MB/s
cudnn-5.1-0.ta 100% |####################################################################| Time: 0:00:09   8.23 MB/s
html5lib-0.999 100% |####################################################################| Time: 0:00:00   8.85 MB/s
bleach-1.5.0-p 100% |####################################################################| Time: 0:00:00  14.92 MB/s
protobuf-3.1.0 100% |####################################################################| Time: 0:01:06 108.88 kB/s
tensorboard-1. 100% |####################################################################| Time: 0:00:13 233.29 kB/s
An unexpected error has occurred.
Please consider posting the following information to the
conda GitHub issue tracker at:https://github.com/conda/conda/issuesCurrent conda install:platform : linux-64conda version : 4.3.8conda is private : Falseconda-env version : 4.3.8conda-build version : not installedpython version : 3.6.0.final.0requests version : 2.12.4root environment : /home/lyl/anaconda3  (writable)default environment : /home/lyl/anaconda3/envs/gtfenvs directories : /home/lyl/anaconda3/envspackage cache : /home/lyl/anaconda3/pkgschannel URLs : https://conda.anaconda.org/jjhelmus/linux-64https://conda.anaconda.org/jjhelmus/noarchhttps://conda.anaconda.org/anaconda-fusion/linux-64https://conda.anaconda.org/anaconda-fusion/noarchhttps://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/linux-64https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/noarchhttps://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/linux-64https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/noarchhttps://repo.continuum.io/pkgs/free/linux-64https://repo.continuum.io/pkgs/free/noarchhttps://repo.continuum.io/pkgs/r/linux-64https://repo.continuum.io/pkgs/r/noarchhttps://repo.continuum.io/pkgs/pro/linux-64https://repo.continuum.io/pkgs/pro/noarchconfig file : /home/lyl/.condarcoffline mode : Falseuser-agent : conda/4.3.8 requests/2.12.4 CPython/3.6.0 Linux/4.15.0-32-generic debian/stretch/sid glibc/2.23UID:GID : 1000:1000`$ /home/lyl/anaconda3/envs/gtf/bin/conda install -c https://conda.anaconda.org/jjhelmus tensorflow`Traceback (most recent call last):File "/home/lyl/anaconda3/lib/python3.6/site-packages/requests/packages/urllib3/connection.py", line 138, in _new_conn(self.host, self.port), self.timeout, **extra_kw)File "/home/lyl/anaconda3/lib/python3.6/site-packages/requests/packages/urllib3/util/connection.py", line 98, in create_connectionraise errFile "/home/lyl/anaconda3/lib/python3.6/site-packages/requests/packages/urllib3/util/connection.py", line 88, in create_connectionsock.connect(sa)socket.timeout: timed outDuring handling of the above exception, another exception occurred:Traceback (most recent call last):File "/home/lyl/anaconda3/lib/python3.6/site-packages/requests/packages/urllib3/connectionpool.py", line 594, in urlopenchunked=chunked)File "/home/lyl/anaconda3/lib/python3.6/site-packages/requests/packages/urllib3/connectionpool.py", line 350, in _make_requestself._validate_conn(conn)File "/home/lyl/anaconda3/lib/python3.6/site-packages/requests/packages/urllib3/connectionpool.py", line 835, in _validate_connconn.connect()File "/home/lyl/anaconda3/lib/python3.6/site-packages/requests/packages/urllib3/connection.py", line 281, in connectconn = self._new_conn()File "/home/lyl/anaconda3/lib/python3.6/site-packages/requests/packages/urllib3/connection.py", line 143, in _new_conn(self.host, self.timeout))requests.packages.urllib3.exceptions.ConnectTimeoutError: (<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f785996b828>, 'Connection to binstar-cio-packages-prod.s3.amazonaws.com timed out. (connect timeout=9.15)')During handling of the above exception, another exception occurred:Traceback (most recent call last):File "/home/lyl/anaconda3/lib/python3.6/site-packages/requests/adapters.py", line 423, in sendtimeout=timeoutFile "/home/lyl/anaconda3/lib/python3.6/site-packages/requests/packages/urllib3/connectionpool.py", line 671, in urlopenrelease_conn=release_conn, **response_kw)File "/home/lyl/anaconda3/lib/python3.6/site-packages/requests/packages/urllib3/connectionpool.py", line 671, in urlopenrelease_conn=release_conn, **response_kw)File "/home/lyl/anaconda3/lib/python3.6/site-packages/requests/packages/urllib3/connectionpool.py", line 671, in urlopenrelease_conn=release_conn, **response_kw)File "/home/lyl/anaconda3/lib/python3.6/site-packages/requests/packages/urllib3/connectionpool.py", line 643, in urlopen_stacktrace=sys.exc_info()[2])File "/home/lyl/anaconda3/lib/python3.6/site-packages/requests/packages/urllib3/util/retry.py", line 363, in incrementraise MaxRetryError(_pool, url, error or ResponseError(cause))requests.packages.urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='binstar-cio-packages-prod.s3.amazonaws.com', port=443): Max retries exceeded with url: /564216837bb5bd601bca65c5/58405ae0da6c991112907fd3?response-content-disposition=attachment%3B%20filename%3D%22tensorflow-0.12.0rc0-py35_0.tar.bz2%22%3B%20filename%2A%3DUTF-8%27%27tensorflow-0.12.0rc0-py35_0.tar.bz2&response-content-type=application%2Fx-tar&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=60&X-Amz-Date=20180823T073032Z&X-Amz-SignedHeaders=host&X-Amz-Security-Token=FQoGZXIvYXdzECMaDCn%2BySIijjspPjGJ5SK3AzA4QtXI95vEKgrmyzO0ummEYmPmrWRylkkthnHV0Nadta75tr9i7pCbE6XwNk983xZg3G7LcJuNH8oSVW09MqPBQ4axsEKrHUuk%2BRxkJaPTWzQ9hkdVKiU2yfyFFgVCm4%2FzOnVRqO3X2%2Fk%2FWMLcdJaHRMnUO1yE14cZWSnf2AX%2Bypg8ERKHlHLFVPYXF1GaA66YFvJ7HMD%2FDdp0sYUHpuIURLikpFTxlx2xwnpw3bxKeIDuiTFOmq8LMzAMtLaxoenXwBbb%2Fl2p8X08Lv2NUY%2FrLuUV6k393pV1QK5BFEyuKqzZNlaR4oLrO7ITx6SISR5UPD6b5QteULTy6m4KSyQL06l02AOBDv5%2BeJCH%2FZlo2TOzHw80jV7P0Srdng0K0MUeXH09KqW8JpmnRLwLySxnX3JY2ACoQDoCO%2FUEhbCQnNKU3tzVZTTSJqw91V2l0n6tPGOJj2TlZUhMi3R9xao6gTztqiFxG1Qlaz6qOawJhZTQTUClct%2BsoMxz%2BbgIUUxgWu1CG3aSAg4zCelqd%2FKv2sKzzwjXEadbZPPj3LyYIm6wiXyPpwi0tCNkFp%2BDoIour8tgo8UomKr42wU%3D&X-Amz-Credential=ASIAWUI46DZFGCHOYBZL%2F20180823%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=74e410507a6a5aa0d01beacd28759c891dc5645f3475762c3c1334feb956e082 (Caused by ConnectTimeoutError(<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f785996b828>, 'Connection to binstar-cio-packages-prod.s3.amazonaws.com timed out. (connect timeout=9.15)'))During handling of the above exception, another exception occurred:Traceback (most recent call last):File "/home/lyl/anaconda3/lib/python3.6/site-packages/conda/gateways/download.py", line 63, in downloadresp = session.get(url, stream=True, proxies=session.proxies, timeout=timeout)File "/home/lyl/anaconda3/lib/python3.6/site-packages/requests/sessions.py", line 501, in getreturn self.request('GET', url, **kwargs)File "/home/lyl/anaconda3/lib/python3.6/site-packages/requests/sessions.py", line 488, in requestresp = self.send(prep, **send_kwargs)File "/home/lyl/anaconda3/lib/python3.6/site-packages/requests/sessions.py", line 630, in sendhistory = [resp for resp in gen] if allow_redirects else []File "/home/lyl/anaconda3/lib/python3.6/site-packages/requests/sessions.py", line 630, in <listcomp>history = [resp for resp in gen] if allow_redirects else []File "/home/lyl/anaconda3/lib/python3.6/site-packages/requests/sessions.py", line 190, in resolve_redirects**adapter_kwargsFile "/home/lyl/anaconda3/lib/python3.6/site-packages/requests/sessions.py", line 609, in sendr = adapter.send(request, **kwargs)File "/home/lyl/anaconda3/lib/python3.6/site-packages/requests/adapters.py", line 479, in sendraise ConnectTimeout(e, request=request)requests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='binstar-cio-packages-prod.s3.amazonaws.com', port=443): Max retries exceeded with url: /564216837bb5bd601bca65c5/58405ae0da6c991112907fd3?response-content-disposition=attachment%3B%20filename%3D%22tensorflow-0.12.0rc0-py35_0.tar.bz2%22%3B%20filename%2A%3DUTF-8%27%27tensorflow-0.12.0rc0-py35_0.tar.bz2&response-content-type=application%2Fx-tar&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=60&X-Amz-Date=20180823T073032Z&X-Amz-SignedHeaders=host&X-Amz-Security-Token=FQoGZXIvYXdzECMaDCn%2BySIijjspPjGJ5SK3AzA4QtXI95vEKgrmyzO0ummEYmPmrWRylkkthnHV0Nadta75tr9i7pCbE6XwNk983xZg3G7LcJuNH8oSVW09MqPBQ4axsEKrHUuk%2BRxkJaPTWzQ9hkdVKiU2yfyFFgVCm4%2FzOnVRqO3X2%2Fk%2FWMLcdJaHRMnUO1yE14cZWSnf2AX%2Bypg8ERKHlHLFVPYXF1GaA66YFvJ7HMD%2FDdp0sYUHpuIURLikpFTxlx2xwnpw3bxKeIDuiTFOmq8LMzAMtLaxoenXwBbb%2Fl2p8X08Lv2NUY%2FrLuUV6k393pV1QK5BFEyuKqzZNlaR4oLrO7ITx6SISR5UPD6b5QteULTy6m4KSyQL06l02AOBDv5%2BeJCH%2FZlo2TOzHw80jV7P0Srdng0K0MUeXH09KqW8JpmnRLwLySxnX3JY2ACoQDoCO%2FUEhbCQnNKU3tzVZTTSJqw91V2l0n6tPGOJj2TlZUhMi3R9xao6gTztqiFxG1Qlaz6qOawJhZTQTUClct%2BsoMxz%2BbgIUUxgWu1CG3aSAg4zCelqd%2FKv2sKzzwjXEadbZPPj3LyYIm6wiXyPpwi0tCNkFp%2BDoIour8tgo8UomKr42wU%3D&X-Amz-Credential=ASIAWUI46DZFGCHOYBZL%2F20180823%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=74e410507a6a5aa0d01beacd28759c891dc5645f3475762c3c1334feb956e082 (Caused by ConnectTimeoutError(<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f785996b828>, 'Connection to binstar-cio-packages-prod.s3.amazonaws.com timed out. (connect timeout=9.15)'))During handling of the above exception, another exception occurred:Traceback (most recent call last):File "/home/lyl/anaconda3/lib/python3.6/site-packages/conda/core/package_cache.py", line 477, in _execute_actionaction.execute()File "/home/lyl/anaconda3/lib/python3.6/site-packages/conda/core/path_actions.py", line 757, in executedownload(self.url, self.target_full_path, self.md5sum)File "/home/lyl/anaconda3/lib/python3.6/site-packages/conda/gateways/download.py", line 124, in downloadgetattr(e.response, 'elapsed', None))conda.exceptions.CondaHTTPError: <unprintable CondaHTTPError object>During handling of the above exception, another exception occurred:Traceback (most recent call last):File "/home/lyl/anaconda3/lib/python3.6/site-packages/conda/exceptions.py", line 617, in conda_exception_handlerreturn_value = func(*args, **kwargs)File "/home/lyl/anaconda3/lib/python3.6/site-packages/conda/cli/main.py", line 137, in _mainexit_code = args.func(args, p)File "/home/lyl/anaconda3/lib/python3.6/site-packages/conda/cli/main_install.py", line 80, in executeinstall(args, parser, 'install')File "/home/lyl/anaconda3/lib/python3.6/site-packages/conda/cli/install.py", line 347, in installexecute_actions(actions, index, verbose=not context.quiet)File "/home/lyl/anaconda3/lib/python3.6/site-packages/conda/plan.py", line 837, in execute_actionsexecute_instructions(plan, index, verbose)File "/home/lyl/anaconda3/lib/python3.6/site-packages/conda/instructions.py", line 258, in execute_instructionscmd(state, arg)File "/home/lyl/anaconda3/lib/python3.6/site-packages/conda/instructions.py", line 111, in PROGRESSIVEFETCHEXTRACT_CMDprogressive_fetch_extract.execute()File "/home/lyl/anaconda3/lib/python3.6/site-packages/conda/core/package_cache.py", line 466, in executeself._execute_action(action)File "/home/lyl/anaconda3/lib/python3.6/site-packages/conda/core/package_cache.py", line 482, in _execute_actionexceptions.append(CondaError(repr(e)))File "/home/lyl/anaconda3/lib/python3.6/site-packages/conda/__init__.py", line 43, in __repr__return '%s: %s\n' % (self.__class__.__name__, text_type(self))File "/home/lyl/anaconda3/lib/python3.6/site-packages/conda/__init__.py", line 46, in __str__return text_type(self.message % self._kwargs)TypeError: not enough arguments for format string

不死心第二次继续执行这个命令,然后卡住了,第三次就好了:

conda install -c https://conda.anaconda.org/jjhelmus tensorflow
Fetching package metadata .................
Solving package specifications: .# All requested packages already installed.
# packages in environment at /home/lyl/anaconda3/envs/gtf:
#
tensorflow                0.12.0rc0                py35_0    jjhelmus

开心的一批
执行python,进入命令行模式,然后输入导入tf,发现可以使用cuda了,美滋滋

python
Python 3.5.4 |Continuum Analytics, Inc.| (default, Aug 14 2017, 13:26:58)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
I tensorflow/stream_executor/dso_loader.cc:135] successfully opened CUDA library libcublas.so.7.5 locally
I tensorflow/stream_executor/dso_loader.cc:135] successfully opened CUDA library libcudnn.so.5 locally
I tensorflow/stream_executor/dso_loader.cc:135] successfully opened CUDA library libcufft.so.7.5 locally
I tensorflow/stream_executor/dso_loader.cc:135] successfully opened CUDA library libcuda.so.1 locally
I tensorflow/stream_executor/dso_loader.cc:135] successfully opened CUDA library libcurand.so.7.5 locally
>>> exit()

Failed to load the native TensorFlow runtime : error while importing tensorflow ——问题解决相关推荐

  1. Failed to load the native TensorFlow runtime.

    Failed to load the native TensorFlow runtime. 跑CPU版的object-detection的示例程序,导入tensorflow时出现: Failed to ...

  2. .net core发布到IIS上出现 HTTP Error 500.31 - Failed to load ASP.NET Core runtime

    错误提示: HTTP Error 500.31 - Failed to load ASP.NET Core runtime Common solutions to this issue: The sp ...

  3. Failed to load AppCompat ActionBar with unknown error

    复制别人demo的布局,之后没有显示界面,下面提示 Failed to load AppCompat ActionBar with unknown error 解决方法:在style 里面的 Them ...

  4. Failed to load ‘Assets/Plugins/******.dll‘ with error ‘找不到指定的模块。

    Failed to load 'Assets/Plugins/******.dll' with error '找不到指定的模块. 项目场景: 问题描述: 原因分析: 参考链接 解决方案: 项目场景: ...

  5. android出现Failed to load AppCompat ActionBar with unknown error.无法预览视图布局解决方法

    打开如图文件\app\src\main\res\values\styles.xml在第二行处添加Base.即可.

  6. vs2017出现“Failed to load required native libraries. Have you installed the latest LibVLC packag”解决办法

    1.点击工具--NuGet包管理器--程序包管理器控制台 2.输入命令NuGet\Install-Package VideoLAN.LibVLC.Windows安装即可解决

  7. erlang nif windows x64 Failed to load NIF library : 'Unspecified error'

    erlang nif when run on windows x64, error like this ; {error,{load_failed,"Failed to load NIF l ...

  8. log4j配置报错:ERROR Failed to load driver.ClassNotFoundException.

    错误①: log4j:ERROR Failed to load driver java.lang.ClassNotFoundException: net.sourceforge.jtds.jdbc.D ...

  9. Error creating bean with name ‘requestMappingHandlerAdapter‘ OR Failed to load ApplicationContext

    Error creating bean with name 'requestMappingHandlerAdapter' OR java.lang.IllegalStateException: Fai ...

最新文章

  1. shell脚本学习之参数传递
  2. python 异常处理模块_我的python学习之路-异常处理和模块导入
  3. 将单词的首字母转换成大写
  4. Django (auth模块、User对象、用户认证、线上-用户认证)
  5. 前端学习(1862)vue之电商管理系统电商系统之绘制默认头像
  6. oracle近三个月内,在oracle中的前三个月SQL
  7. excite-punastranvirtual.lab振动噪声仿真
  8. cvpr2019论文汇总(论文/代码/项目/论文阅读)
  9. 智鹰科技——无人机线路巡检系统商业计划书
  10. 接口测试apipost
  11. t检验及python代码实现
  12. Trajan求割边,强连通分量
  13. 数字化时代,如何赋能人才
  14. 无线广播相关信号(收音机)的发射与接收
  15. 对幕布的几条改进建议
  16. CAD编辑技巧之PDF转DWG和DWG图纸的编辑
  17. 星期天上午买了个nokia 的N-Gage QD手机
  18. PC端如何查看WiFi密码
  19. Xshell配色方案说明
  20. 百度图片爬虫,爬取高清图片

热门文章

  1. 配置@MapperScan路径错误导致报错
  2. webrtc学习--webrtc源码获取
  3. ios 权限提示语_最友好的访问权限之iOS权限提示
  4. 【Android 逆向】使用 Python 代码解析 ELF 文件 ( PyCharm 中创建 Python 程序 | 导入 ELFFile 库 | 解析 ELF 文件 )
  5. 【网络IO】(二)多路复用器——内核级介绍
  6. 力扣之数据结构入门的刷题总结
  7. 房内事对白经典!!!!
  8. Android中的Uri详解
  9. 网页爬虫使用代理IP的几种方案,爬虫如何设置代理?
  10. mongobd Databus