简体   繁体   English

Python - 由于缺少 DLL,Tensorflow 不会导入

[英]Python - Tensorflow won't import due to missing DLL's

Problem问题

  • Tensorflow will not import due to tensorflow.python.由于 tensorflow.python,Tensorflow 不会导入。 pywrap_tensorflow_internal not existing. pywrap_tensorflow_internal不存在。 I am recieving the following error ' ImportError: DLL load failed: The specified module could not be found .'.我收到以下错误“导入错误:DLL 加载失败:找不到指定的模块。”。

Solution Attempts解决方案尝试

  • I have been attempting to follow a similar issue that was reported to the Tensorflow documentation .我一直在尝试关注已报告给Tensorflow 文档的类似问题。 However, I cannot find the solution or any appropriate pointers in amongst the thread.但是,我在线程中找不到解决方案或任何适当的指针。
  • I downloaded the MSVCP140.DLL file after reading on this thread .在阅读此线程后,我下载了 MSVCP140.DLL 文件。 However, I have not changed my System Path to suit as I am unsure what it should b changed too (This could be the issue) .但是,我没有改变我的系统路径以适应,因为我不确定它也应该改变什么(这可能是问题)
  • I have tried installing Tensorflow accross numerous Python versions (3.5.2, 3.6.0, 3.7.0) and the same error continues to occur.我尝试在多个 Python 版本(3.5.2、3.6.0、3.7.0)中安装 Tensorflow,但同样的错误继续发生。

Question

  • I am wondering can I use Tensorflow on this machine?我想知道我可以在这台机器上使用 Tensorflow 吗? and if so then what are the steps that I need to follow to configure Tensorflow to the correct settings.如果是这样,那么我需要遵循哪些步骤才能将 Tensorflow 配置为正确的设置。

Set-up Environment设置环境

  • Python version - 3.5.2 Python 版本 - 3.5.2
  • Device - ThinkPad X1 Carbon, i7-8550U, 16GB, 256GB SSD设备 - ThinkPad X1 Carbon、i7-8550U、16GB、256GB SSD

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM