导入错误。 .py文件工作时无法从Jupyter笔记本导入

时间:2019-04-12 12:25:34

标签: python-3.x jupyter-notebook anaconda julia pycall

当尝试使用Anaconda python 3.6.8在Jupyter笔记本中导入Julia(j = julia.Julia())时,出现以下错误。

但是,相同的代码在python .py文件中也能很好地工作。我已经尝试了本帖子Import error: DLL load failed in Jupyter notebook but working in .py file中提供的所有功能,但是没有运气。

任何帮助将不胜感激。

<ipython-input-2-919a3e47cab3> in <module>
----> 1 jl = julia.Julia()
      2 jl.include("julia/LapSolver")

~\AppData\Roaming\Python\Python36\site-packages\julia\core.py in __init__(self, *args, **kwargs)
    795 
    796     def __init__(self, *args, **kwargs):
--> 797         self.__julia = Julia(*args, **kwargs)
    798     __init__.__doc__ = Julia.__init__.__doc__
    799 

~\AppData\Roaming\Python\Python36\site-packages\julia\core.py in __init__(self, init_julia, jl_init_path, runtime, jl_runtime_path, debug)
    527                 libjulia_path = libjulia_path.encode("ascii")
    528 
--> 529             self.api = ctypes.PyDLL(libjulia_path, ctypes.RTLD_GLOBAL)
    530             if not jl_init_path:
    531                 if jl_runtime_path:


OSError: [WinError 127] The specified procedure could not be found```


0 个答案:

没有答案