我正在使用 python 3.4 并安装了 catboost 库,但是当我尝试导入时,它显示以下错误。
ImportError Traceback (most recent call last)
c:\python34\lib\site-packages\catboost\core.py in <module>()
17 try:
---> 18 from _catboost import _PoolBase, _CatBoostBase, CatboostError,
_cv, _set_logger, _reset_logger
19 except ImportError:
ImportError: No module named '_catboost'
During handling of the above exception, another exception occurred:
ImportError Traceback (most recent call last)
<ipython-input-51-f6570a454eaf> in <module>()
----> 1 from catboost import CatBoostClassifier,cv, Pool
c:\python34\lib\site-packages\catboost\__init__.py in <module>()
----> 1 from .core import Pool, CatBoost, CatBoostClassifier,
CatBoostRegressor, CatboostError, cv # noqa
2 try:
3 from .widget import CatboostIpythonWidget # noqa
4 except:
5 pass
c:\python34\lib\site-packages\catboost\core.py in <module>()
18 from _catboost import _PoolBase, _CatBoostBase, CatboostError, _cv,
_set_logger, _reset_logger
19 except ImportError:
---> 20 from ._catboost import _PoolBase, _CatBoostBase, CatboostError,
_cv, _set_logger, _reset_logger
21
22 from contextlib import contextmanager
ImportError: DLL load failed: The specified module could not be found.