ImportError: DLL load failed while importing taichi_python: 动态链接库(DLL)初始化例程失败。
Windows 系统,安装后运行失败一直是这个提示,已经按提示装了 VC_redist.x64.exe 也是如此,暂时找不到解决方法了,目前搜索有的说DLL初始化失败可能是CPU太旧了不支持AVX指令集的原因?不知是否如此,CUP是AMD的64位的。
Traceback (most recent call last):
File "C:\Users\......\Python310\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\......\Python310\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:\Users\......\Python310\Scripts\ti.exe\__main__.py", line 4, in <module>
File "C:\Users\......\Python310\lib\site-packages\taichi\__init__.py", line 3, in <module>
from taichi._funcs import *
File "C:\Users\......\Python310\lib\site-packages\taichi\_funcs.py", line 3, in <module>
from taichi.lang import impl, matrix, ops
File "C:\Users\......\Python310\lib\site-packages\taichi\lang\__init__.py", line 1, in <module>
from taichi.lang import impl, simt
File "C:\Users\......\Python310\lib\site-packages\taichi\lang\impl.py", line 6, in <module>
from taichi._lib import core as _ti_core
File "C:\Users\......\Python310\lib\site-packages\taichi\_lib\__init__.py", line 1, in <module>
from taichi._lib.utils import ti_python_core as core
File "C:\Users\......\Python310\lib\site-packages\taichi\_lib\utils.py", line 102, in <module>
ti_python_core = import_ti_python_core()
File "C:\Users\......\Python310\lib\site-packages\taichi\_lib\utils.py", line 53, in import_ti_python_core
raise e from None
File "C:\Users\......\Python310\lib\site-packages\taichi\_lib\utils.py", line 43, in import_ti_python_core
from taichi._lib.core import \
ImportError: DLL load failed while importing taichi_python: 动态链接库(DLL)初始化例程失败。
Consider installing Microsoft Visual C++ Redistributable: https://aka.ms/vs/16/release/vc_redist.x64.exe