簡體   English   中英

使用python3.6安裝Tensorflow失敗

[英]Installing Tensorflow using python3.6 failing

這是我目前的環境

$ pip show tensorflow
Name: tensorflow
Version: 1.4.0
Summary: TensorFlow helps the tensors flow
Home-page: https://www.tensorflow.org/
Author: Google Inc.
Author-email: opensource@google.com
License: Apache 2.0
Location: /usr/local/lib/python3.6/site-packages
Requires: wheel, tensorflow-tensorboard, enum34, six, numpy, protobuf

$ pip show protobuf
Name: protobuf
Version: 3.5.0
Summary: Protocol Buffers
Home-page: https://developers.google.com/protocol-buffers/
Author: protobuf@googlegroups.com
Author-email: protobuf@googlegroups.com
License: 3-Clause BSD License
Location: /usr/local/lib/python3.6/site-packages
Requires: six, setuptools

$pip show six
Name: six
Version: 1.11.0
Summary: Python 2 and 3 compatibility utilities
Home-page: http://pypi.python.org/pypi/six/
Author: Benjamin Peterson
Author-email: benjamin@python.org
License: MIT
Location: /usr/local/lib/python3.6/site-packages
Requires: 

回溯(最近通話最后一個):文件“”,1號線,在文件“/Users/joson/tensorflow/lib/python3.6/site-packages/tensorflow/ 初始化的.py”,第24行,從tensorflow.python進口*文件“/Users/joson/tensorflow/lib/python3.6/site-packages/tensorflow/python/ 初始化 py”為51行,從tensorflow.python進口pywrap_tensorflow文件“/用戶/ joson / tensorflow / lib目錄/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py“,第52行,in raise ImportError(msg)ImportError:Traceback(最近一次調用last):文件”/ Users / joson / tensorflow / lib / python3。 6 / site-packages / tensorflow / python / pywrap_tensorflow.py“,第41行,來自tensorflow.python.pywrap_tensorflow_internal import * File”/Users/joson/tensorflow/lib/python3.6/site-packages/tensorflow/python/ pywrap_tensorflow_internal.py“,第28行,在_pywrap_tensorflow_internal = swig_import_helper()文件”/Users/joson/tensorflow/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py“,第24行 ,在swig_import_helper _mod = imp.load_module('_ pywrap_tensorflow_internal',fp,pathname,description)文件“/Users/joson/tensorflow/lib/python3.6/imp.py”,第242行,在load_module中返回load_dynamic(name,filename ,file)文件“/Users/joson/tensorflow/lib/python3.6/imp.py”,第342行,在load_dynamic中返回_load(spec)ImportError:dlopen(/Users/joson/tensorflow/lib/python3.6/ site-packages / tensorflow / python / _pywrap_tensorflow_internal.so,10):未加載庫:@ rpath / libcublas.8.0.dylib引用自:/Users/joson/tensorflow/lib/python3.6/site-packages/tensorflow/python /_pywrap_tensorflow_internal.so原因:找不到圖像

正如評論中所討論的,問題是Mac OS X的TensorFlow的GPU版本安裝在沒有安裝CUDA的Mac上。 卸載並重新安裝TensorFlow的CPU版本應該可以解決問題。

(請注意,不再正式支持適用於Mac OS X的TensorFlow GPU版本。)

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM