首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何修复ImportError: System.DllNotFoundException: libdl.so

如何修复ImportError: System.DllNotFoundException: libdl.so
EN

Stack Overflow用户
提问于 2022-02-04 16:07:30
回答 1查看 351关注 0票数 0

当我试图在木星笔记本中导入aesim.simba ()(我的操作系统是UbuntuBudgie21.10)时,我得到了以下错误

代码语言:javascript
复制
import aesim.simba

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-2ec74653cfe4> in <module>
----> 1 import aesim.simba

~/anaconda3/lib/python3.7/site-packages/aesim/simba/__init__.py in <module>
      1 #%% Load modules...
----> 2 import clr, sys, os
      3 
      4 foldername = os.path.join(os.path.dirname(os.path.abspath(__file__)),'Resources')
      5 sys.path.append(foldername)

ImportError: System.DllNotFoundException: libdl.so
  at (wrapper managed-to-native) Python.Runtime.NativeMethods.dlerror()
  at Python.Runtime.NativeMethods.GetProcAddress (System.IntPtr dllHandle, System.String name) [0x00014] in <8dd8fc13f92f45c99ad71297a6b63b31>:0 
  at Python.Runtime.Runtime.Initialize (System.Boolean initSigs) [0x00263] in <8dd8fc13f92f45c99ad71297a6b63b31>:0 
  at Python.Runtime.PythonEngine.Initialize (System.Collections.Generic.IEnumerable`1[T] args, System.Boolean setSysArgv, System.Boolean initSigs) [0x00014] in <8dd8fc13f92f45c99ad71297a6b63b31>:0 
  at Python.Runtime.PythonEngine.Initialize (System.Boolean setSysArgv, System.Boolean initSigs) [0x00005] in <8dd8fc13f92f45c99ad71297a6b63b31>:0 
  at Python.Runtime.PythonEngine.InitExt () [0x00000] in <8dd8fc13f92f45c99ad71297a6b63b31>:0 

我是Linux世界的新手。有谁能告诉我如何解决这个问题,以及如何正确导入aesim.simba

EN

回答 1

Stack Overflow用户

发布于 2022-02-06 15:24:10

经过大量搜索解决这个问题,解决方案是在Ubuntu终端上安装libdl.so,方法是执行以下命令: sudo ln -s /lib/x86_64-linux-gnu/libdl.so.2 /lib/x86_64-linux-gnu/libdl.so

现在我在导入aesim.simba时一点问题都没有

这个答案来自:https://github.com/sn4k3/UVtools/discussions/342

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/70989417

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档