只是安装 xgboost 库很痛苦,但现在在 Windows 8.1 64 位上发生了其他错误
import xgboost as xgb
Traceback (most recent call last):
File "C:/Users/Пашка/PycharmProjects/kaggler bank santander/1.py", line 12, in <module>
import xgboost as xgb
File "C:\Python34\lib\site-packages\xgboost-0.4-py3.4.egg\xgboost\__init__.py", line 11, in <module>
from .core import DMatrix, Booster
File "C:\Python34\lib\site-packages\xgboost-0.4-py3.4.egg\xgboost\core.py", line 83, in <module>
_LIB = _load_lib()
File "C:\Python34\lib\site-packages\xgboost-0.4-py3.4.egg\xgboost\core.py", line 77, in _load_lib
lib = ctypes.cdll.LoadLibrary(lib_path[0])
File "C:\Python34\lib\ctypes\__init__.py", line 429, in LoadLibrary
return self._dlltype(name)
File "C:\Python34\lib\ctypes\__init__.py", line 351, in __init__
self._handle = _dlopen(self._name, mode)
OSError: [WinError 193] %1 is not a valid Win32 application
可以做什么?我认为这是因为 .py 文件在 Windows 中的关联方式我猜