Python 使用xgboost时出现问题,错误-“;OSError:[WinError 126]找不到指定的模块";

Python 使用xgboost时出现问题,错误-“;OSError:[WinError 126]找不到指定的模块";,python,machine-learning,artificial-intelligence,data-science,xgboost,Python,Machine Learning,Artificial Intelligence,Data Science,Xgboost,我已使用以下命令在我的Windows 10 64位计算机上安装了xgboost: pip3 install C:\Softwares\xgboost-0.72-cp36-cp36m-win32.whl 但是,在我的一个python文件中导入xgboost时,它失败了,出现以下错误: --------------------------------------------------------------------------- OSError

我已使用以下命令在我的Windows 10 64位计算机上安装了
xgboost

pip3 install C:\Softwares\xgboost-0.72-cp36-cp36m-win32.whl
但是,在我的一个python文件中导入xgboost时,它失败了,出现以下错误:

---------------------------------------------------------------------------
OSError                                   Traceback (most recent call last)
<ipython-input-11-2b521fb1d447> in <module>()
      6 import sklearn.linear_model as linear_model
      7 import seaborn as sns
----> 8 import xgboost as xgb
      9 from sklearn.model_selection import KFold
     10 from IPython.display import HTML, display

c:\users\1022004\appdata\local\programs\python\python36-32\lib\site-packages\xgboost\__init__.py in <module>()
      9 import os
     10 
---> 11 from .core import DMatrix, Booster
     12 from .training import train, cv
     13 from . import rabit                   # noqa

..............................

c:\users\1022004\appdata\local\programs\python\python36-32\lib\ctypes\__init__.py in __init__(self, name, mode, handle, use_errno, use_last_error)
    346 
    347         if handle is None:
--> 348             self._handle = _dlopen(self._name, mode)
    349         else:
    350             self._handle = handle

OSError: [WinError 126] The specified module could not be found.
---------------------------------------------------------------------------
OSError回溯(最近一次调用上次)
在()
6将sklearn.linear\u模型导入为linear\u模型
7作为sns导入seaborn
---->8将xgb增强作为xgb导入
9从sklearn.model_选择导入KFold
10从IPython.display导入HTML,显示
c:\users\1022004\appdata\local\programs\python\python36-32\lib\site packages\xgboost\\uuuu init\uuuuu.py in()
9导入操作系统
10
--->11.核心进口数据矩阵,助推器
12.来自培训导入培训,简历
13来自。进口rabit#noqa
..............................
c:\users\1022004\appdata\local\programs\python\python36-32\lib\ctypes\\ uuuuuu init\uuuuu.py in\uuuuu init\uuuuuu(self、name、mode、handle、use\u errno、use\u last\u error)
346
347如果句柄为“无”:
-->348 self.\u handle=\u dlopen(self.\u名称,模式)
349其他:
350自。_手柄=手柄
OSError:[WinError 126]找不到指定的模块。

有人能帮我吗?此外,我还尝试在我的操作系统中安装
64位xgboost wheel
文件,但它说它不支持wheel文件。

是否尝试在环境变量-PYTHONPATH per中添加包的路径tho?还有另一种解决问题的方法。