Python之ImportError: DLL load failed: 找不到指定的模块解决方案

[复制链接]
查看1064 | 回复0 | 2023-8-23 11:44:31 | 显示全部楼层 |阅读模式
相干配置

  

  • python==3.10
  

  • 电脑为win10家庭版
  

  • 运用的是anaconda情况中的envs虚拟情况,而且是在用anaconda安装的时间已经勾选第一个add path
  遇见标题

  在debug的时间会出现,importError:DLL load failed while importing _interpolative: 找不到指定的步调等等。
  1. DLL load failed while importing _interpolative: 找不到指定的程序
  2. # 例子
  3. Traceback (most recent call last):
  4.   File "<ipython-input-12-0f6709e38f49>", line 1, in <module>
  5.     from PIL import Image
  6.   File "d:\ProgramData\Anaconda3\lib\site-packages\PIL\Image.py", line 58, in <module>
  7.     from . import _imaging as core
  8. ImportError: DLL load failed: 找不到指定的模块。
复制代码
出现缘故起因

  这类标题一般都是在安装第三方库的时间安装不完备,大概安装的第三方库被覆盖大概粉碎了,所以无法知道相应的类库。所以出现这种情况之后我们卸载重装完成修复。
  解决方案

  

  • 通过pip大概conda下令查找第三方库是否存在,通过卸载,重新安装指定版本,之后即可不会报错。这里用我出现错误的第三方库作为例子。
  1. # pip show statsmodels # 或者用conda命令查找
  2. conda list --show statsmodels # 或者用conda命令查找
复制代码
  1. # pip uninstall statsmodels
  2. # pip istall statsmodels
  3. conda uninstall statsmodels
  4. conda install statsmodels
复制代码
假如还有其他的标题可以移步这篇博客,大概是在批评留言,我会经常看博客解决的!
  ImportError: DLL load failed: 找不到指定的模块 解决方案汇总
  

来源:https://blog.csdn.net/xiaziqiqi/article/details/128982004
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则