Tensorflow2.0 ImportError: DLL load failed: 找不到指定的模块。

一.参考官网安装教程

TensorFlow

在这里插入图片描述

1.下载适用于 Visual Studio 2015、2017 和 2019 的 Microsoft Visual C++ 可再发行软件包
https://support.microsoft.com/zh-cn/topic/%E6%9C%80%E6%96%B0%E6%94%AF%E6%8C%81%E7%9A%84-visual-c-%E4%B8%8B%E8%BD%BD-2647da03-1eea-4433-9aff-95f26a218cc0
2.Enable NTFS long paths policy win10开启长路径
Hit the Windows key, type gpedit.msc and press Enter.
Navigate to Local Computer Policy > Computer Configuration > Administrative Templates > System > Filesystem 

在这里插入图片描述

# 重启电脑后 安装TensorFlow库
# pip install --upgrade pip
python -m pip install --upgrade pip
pip install -U tensorflow --trusted-host pypi.douban.com
二.运行相应程序
import matplotlib as mpl
import matplotlib.pyplot as plt
import numpy as np
import sklearn
import pandas as pd
import os
import sys
import time
import tensorflow as tf

print(tf.__version__)
print(sys.version_info)
for module in mpl, np, pd, sklearn, tf, tf.keras:
    print(module.__name__, module.__version__)

在这里插入图片描述

tensorflow2 ImportError: DLL load failed: 动态链接库(DLL)初始化例程失败。

enable-longpaths-windows
导入Tensorflow2.1.0出现ImportError: DLL load failed: 找不到指定的程序的解决办法
清华源安装tensorflow2.0

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Cocktail_py

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值