from torch._C import *ImportError: DLL load failed 报错解决方法 亲测可用

简介: from torch._C import * ImportError: DLL load failed

一、问题


在跑一个 Pytorch 写的深度学习模型项目时出现如下报错:



from torch._C import * ImportError: DLL load failed: 找不到指定的程序。


二、解决方法



pip升级配置的 python 版本也会报错,用conda install python==3.6.7,如下所示:


condainstallpython==3.6.7




可以使用 Pytorch 啦!!!

目录
相关文章
|
Python
Python常见问题 - pip报错 ValueError: Unable to find resource t64.exe in package pip._vendor.distlib
Python常见问题 - pip报错 ValueError: Unable to find resource t64.exe in package pip._vendor.distlib
446 0
Python常见问题 - pip报错 ValueError: Unable to find resource t64.exe in package pip._vendor.distlib
|
9月前
|
机器学习/深度学习 并行计算 安全
ImportError: DLL load failed while importing libpaddle: 找不到指定的模块。问题处理
【5月更文挑战第12天】ImportError: DLL load failed while importing libpaddle: 找不到指定的模块。问题处理
2705 0
|
8月前
|
机器学习/深度学习 并行计算 安全
ImportError: DLL load failed while importing libpaddle: 找不到指定的模块问题
【6月更文挑战第7天】ImportError: DLL load failed while importing libpaddle: 找不到指定的模块问题
1039 0
|
计算机视觉 Python
成功解决Python导入opencv报错“DLL load failed while importing cv2: 找不到指定的模”
成功解决Python导入opencv报错“DLL load failed while importing cv2: 找不到指定的模”
617 0
|
9月前
|
Python
IDA3.12版本的python,依旧报错IDAPython: error executing init.py.No module named ‘impRefer to the message win
IDA3.12版本的python,依旧报错IDAPython: error executing init.py.No module named ‘impRefer to the message win
|
Java C语言 Python
Python安装Jnius库报错DLL load failed:找不到模块
Python安装Jnius库报错DLL load failed:找不到模块
395 0
Python安装Jnius库报错DLL load failed:找不到模块
|
PyTorch 算法框架/工具 Python
AttributeError: module ‘distutils‘ has no attribute ‘version‘解决跑pytorch代码报错
AttributeError: module ‘distutils‘ has no attribute ‘version‘解决跑pytorch代码报错
|
网络安全 Python Windows
ImportError: DLL load failed while importing _ssl: 找不到指定的模块。
找到Anaconda3\pkgs\python-3.8.12-h900ac77_2_cpython\DLLs下的_ssl.pyd文件,查阅在该环境上安装的python版本号,下载python寻找对应的_ssl.pyd覆盖到上述目录中,即可解决问题。
1112 0
|
Python
命令行import torch正常,但pycharm中显示“No module named torch”解决方法
首先检查环境导入是否有问题,工具栏file–settings–project–project interpreter,在这里添加配置好的conda环境,注意添加时要选中对应的conda environment
985 0
|
Linux 网络安全 Windows
python3在windows系统下报ImportError: DLL load failed: 找不到指定的模块。
python3在windows系统下报ImportError: DLL load failed: 找不到指定的模块。
178 0