Xgboost error of mounting solutions

Environment: win7 64 bit, Python3.6
xgboost installation package download link: https: //www.lfd.uci.edu/~gohlke/pythonlibs/#xgboost
Here Insert Picture Description
steps are as follows:

  1. Download the above figure marked red box installation package to the machine path E: \ Anaconda20191027 \ Scripts under
  2. Open native command window, switch to the directory Scripts
  3. 输入: pip install xgboost-1.0.2-cp36-cp36m-win_amd64.whl
  4. 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

Released five original articles · won praise 1 · views 53

Guess you like

Origin blog.csdn.net/weixin_39294199/article/details/105311228