Environment: win7 64 bit, Python3.6
xgboost installation package download link: https: //www.lfd.uci.edu/~gohlke/pythonlibs/#xgboost
steps are as follows:
- Download the above figure marked red box installation package to the machine path E: \ Anaconda20191027 \ Scripts under
- Open native command window, switch to the directory Scripts
- 输入: pip install xgboost-1.0.2-cp36-cp36m-win_amd64.whl
- wait. . . Show the command Successfully installed xgboost-1.0.2 that is installed successfully
The next test, then began the error. . . . . . o (╥﹏╥) o
from xgboost.sklearn import XGBRegressor
Given information is as follows: AttributeError: module 'pandas' has no attribute 'rolling_count'
There are also such error
import xgboost as xgb
Given information is as follows: AttributeError: module 'pandas.core.computation' has no attribute 'expressions'
So start looking for problems that are not compatible with the version pandas, and updates the pandas, or run again reported the same mistake. I went to search a variety of information, and finally resolved.
Solution: Update dask
open Anaconda Prompt enter the command: pip install --upgrade dask
Finally, once again import xgboost as xgb no problem, ( ▽ )
I hope that they will encounter the same problem of a small partner a little help now