【发布时间】:2021-02-20 15:13:27
【问题描述】:
目标
- 我的最终目标是在 conda 环境中本地运行这个 kaggle 项目。
- 我在 Ubuntu 20.04 LTS、conda 环境、python 3.8 上运行它
输入
- 建议我运行 this 代码,因为我有库依赖问题。
pipdeptree --reverse --packages xgboost
输出
Warning!!! Possibly conflicting dependencies found:
* wandb==0.10.4
- subprocess32 [required: >=3.5.3, installed: ?]
* spyder==4.1.5
- pyqt5 [required: <5.13, installed: ?]
- pyqtwebengine [required: <5.13, installed: ?]
* QDarkStyle==2.8.1
- helpdev [required: >=0.6.10, installed: ?]
* Flask-Compress==1.5.0
- brotli [required: Any, installed: ?]
* dask-xgboost==0.1.11
- xgboost [required: <=0.90, installed: 1.2.0]
* dash==1.16.3
- dash-core-components [required: ==1.12.1, installed: 1.3.1]
- dash-html-components [required: ==1.1.1, installed: 1.0.1]
- dash-renderer [required: ==1.8.2, installed: 1.1.2]
- dash-table [required: ==4.10.1, installed: 4.4.1]
------------------------------------------------------------------------
xgboost==1.2.0
- dask-xgboost==0.1.11 [requires: xgboost<=0.90]
更新
现在我已经重新安装了 XGBoost 和
conda install -c conda-forge xgboost
当我在 jupyter 中运行我的代码导入时,它会说
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-1-f5a95d2c9926> in <module>
3 from dask.distributed import Client
4 from dask import array as da
----> 5 import xgboost as xgb
6 from xgboost import dask as dxgb
7 from xgboost.dask import DaskDMatrix
ModuleNotFoundError: No module named 'xgboost'
【问题讨论】:
标签: python anaconda conda xgboost kaggle