我在Windows 7 64位上使用Anaconda 3.1.0。我已经安装了tensorflow(GPU)。运行以下命令时出现错误。
>>> import tensorflow as tf
完整的追溯
(tensorflow) C:\windows\system32>python
Python 3.5.3 |Continuum Analytics, Inc.| (default, May 15 2017, 10:43:23) [MSC v
.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
Traceback (most recent call last):
File "C:\Users\mbharsakale\AppData\Local\Continuum\Anaconda2\envs\tensorflow\l
ib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 18, in s
wig_import_helper
return importlib.import_module(mname)
File "C:\Users\mbharsakale\AppData\Local\Continuum\Anaconda2\envs\tensorflow\l
ib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 986, in _gcd_import
File "<frozen importlib._bootstrap>", line 969, in _find_and_load
File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 666, in _load_unlocked
File "<frozen importlib._bootstrap>", line 577, in module_from_spec
File "<frozen importlib._bootstrap_external>", line 919, in create_module
File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
ImportError: DLL load failed: The specified module could not be found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\mbharsakale\AppData\Local\Continuum\Anaconda2\envs\tensorflow\l
ib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 41, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\mbharsakale\AppData\Local\Continuum\Anaconda2\envs\tensorflow\l
ib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 21, in <
module>
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\mbharsakale\AppData\Local\Continuum\Anaconda2\envs\tensorflow\l
ib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 20, in s
wig_import_helper
return importlib.import_module('_pywrap_tensorflow_internal')
File "C:\Users\mbharsakale\AppData\Local\Continuum\Anaconda2\envs\tensorflow\l
ib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: No module named '_pywrap_tensorflow_internal'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\mbharsakale\AppData\Local\Continuum\Anaconda2\envs\tensorflow\l
ib\site-packages\tensorflow\__init__.py", line 24, in <module>
from tensorflow.python import *
File "C:\Users\mbharsakale\AppData\Local\Continuum\Anaconda2\envs\tensorflow\l
ib\site-packages\tensorflow\python\__init__.py", line 51, in <module>
from tensorflow.python import pywrap_tensorflow
File "C:\Users\mbharsakale\AppData\Local\Continuum\Anaconda2\envs\tensorflow\l
ib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 52, in <module>
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "C:\Users\mbharsakale\AppData\Local\Continuum\Anaconda2\envs\tensorflow\l
ib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 18, in s
wig_import_helper
return importlib.import_module(mname)
File "C:\Users\mbharsakale\AppData\Local\Continuum\Anaconda2\envs\tensorflow\l
ib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 986, in _gcd_import
File "<frozen importlib._bootstrap>", line 969, in _find_and_load
File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 666, in _load_unlocked
File "<frozen importlib._bootstrap>", line 577, in module_from_spec
File "<frozen importlib._bootstrap_external>", line 919, in create_module
File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
ImportError: DLL load failed: The specified module could not be found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\mbharsakale\AppData\Local\Continuum\Anaconda2\envs\tensorflow\l
ib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 41, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\mbharsakale\AppData\Local\Continuum\Anaconda2\envs\tensorflow\l
ib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 21, in <
module>
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\mbharsakale\AppData\Local\Continuum\Anaconda2\envs\tensorflow\l
ib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 20, in s
wig_import_helper
return importlib.import_module('_pywrap_tensorflow_internal')
File "C:\Users\mbharsakale\AppData\Local\Continuum\Anaconda2\envs\tensorflow\l
ib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: No module named '_pywrap_tensorflow_internal'
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/install_sources#common_installation_probl
ems
for some common reasons and solutions. Include the entire stack trace
above this error message when asking for help.
cudnn lib版本是错误的,所以我替换了正确版本的cudnn lib,它起作用了。
问题内容: 我在这里遵循pycairo安装说明:http : //www.cs.rhul.ac.uk/home/tamas/development/igraph/tutorial/install.html 安装pycairo以与igraph一起使用。 但是,即使在运行安装程序并根据说明将所有DLL解压缩/复制到site-packages cairo目录之后,我仍然会收到以下错误消息: 我正在Win
问题内容: 我遇到了与此处讨论的问题相同的问题,但是我不敢评论评论,所以我开始了新的问题。 我以PATH方式访问libpq.dll(C:\ PostgreSql \ lib),但无法解决此问题。 使用Python 2.7.9 32位,PostgreSQL 8.4,Win 8 问题答案: 我在上也面临着同样的问题。第一次安装“ C:\ Program Files”,并且将环境设置为指向Postgre
问题内容: 我试图在Windows8.1 64bit python3.6.0中使用pip安装tensorflow cpu, 但这给了我这个错误: 我下载了python36.dll并确保存在所有其他.dll并安装Microsoft Visual C ++ 2015 我还卸载了tensorflow并安装了几次其他版本,但没有任何结果。 问题答案: Github上也有类似的问题: Tensorflow问
问题内容: 我已经开始使用Python处理图片,并且想开始使用PIL(枕头)。要安装它,我跑了。安装时,以前未安装PIL。我还尝试卸载并重新安装它,以及使用。 当我在Python中运行它时,第一行是: 我检查了目录,并且PIL文件夹下存在文件_imaging.cp36-win_amd64.pyd。 如果存在所需的DLL,为什么会发生这种情况?我该如何解决? 问题答案: 我在Python 3.6中也
问题内容: Python:3.6.4 Windows operating system: 10 Kiwifruit: 1.10.0 Kivy安装方法 描述 嗨,我正在尝试从安装Kivy运行示例代码。以下是我收到的错误。任何帮助都会很棒。我曾尝试查看有关类似问题的先前查询,但到目前为止,有关这些问题的建议均未奏效。 代码和日志 我尝试运行的代码: 问题答案: 我有同样的问题。我首先通过Kivy及其依
系统信息: win10 python 3.6。2. tensorflow 1.11。0 numpy 1.15。3. 康达4.3。30 cuda 8.0 cudnn6.0 pip 18.1 我用python3创建了一个新环境。6.2在anaconda安装了tensorflow和pip,遇到这样的问题,谢谢帮助。 Python 3.6。2 | Continuum Analytics,Inc.|(默认,