每次我在我的python环境中导入cntk时,我都会收到“DLL加载失败:找不到指定的模块”
我的环境设置正确,我什至在编写代码时自动完成了cntk,但是每当我运行项目时,它总是在第一行失败。
我完全无法解决这个问题,因为我已经按照 CNTK 教程的每一步操作,并且这个问题的github 票仍然是开放的,这绝对没有帮助。
我的 python 路径是 C:\Anaconda3\envs\cntk-py35\Lib\site-packages;F:\cntkInstall\envs\cntk-py34\Lib\site-packages
出于绝望,我刚刚开始添加任何与路径相关的远程python,看看我是否可以让它工作。依然没有。请帮忙!
编辑:这是我得到的错误:
Traceback (most recent call last):
File "C:\Anaconda3\envs\cntk-py35\Lib\site-packages\cntk\cntk_py.py", line 18, in swig_import_helper
return importlib.import_module(mname)
File "C:\Anaconda3\envs\cntk-py35\lib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 986, in _gcd_import
File "<frozen importlib._bootstrap>", line 969, in _find_and_load
File "<frozen importlib._bootstrap>", line 956, in _find_and_load_unlocked
ImportError: No module named 'cntk._cntk_py'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Anaconda3\envs\cntk-py35\Lib\site-packages\cntk\__init__.py", line 11, in <module>
from . import ops
File "C:\Anaconda3\envs\cntk-py35\Lib\site-packages\cntk\ops\__init__.py", line 11, in <module>
from . import sequence
File "C:\Anaconda3\envs\cntk-py35\Lib\site-packages\cntk\ops\sequence\__init__.py", line 6, in <module>
from ...utils import sanitize_input, get_data_type, typemap
File "C:\Anaconda3\envs\cntk-py35\Lib\site-packages\cntk\utils\__init__.py", line 14, in <module>
from .. import cntk_py
File "C:\Anaconda3\envs\cntk-py35\Lib\site-packages\cntk\cntk_py.py", line 21, in <module>
_cntk_py = swig_import_helper()
File "C:\Anaconda3\envs\cntk-py35\Lib\site-packages\cntk\cntk_py.py", line 20, in swig_import_helper
return importlib.import_module('_cntk_py')
File "C:\Anaconda3\envs\cntk-py35\lib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: DLL load failed: The specified module could not be found.