catboost / catboost/tutorials

Error in python_tutorial - No module named 'pkg_resources'

Open
#23 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
1.1k
Forks
423
PR merge metrics
No merged PRs in 30d

Description

The error, py 3.12:
```
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
Cell In[36], line 1
----> 1 import hyperopt
3 def hyperopt_objective(params):
4 model = CatBoostClassifier(
5 l2_leaf_reg=int(params['l2_leaf_reg']),
6 learning_rate=params['learning_rate'],
(...) 11 loss_function=metrics.Logloss(),
12 )

File ~/gitlab/catboost-experiments/.venv/lib/python3.12/site-packages/hyperopt/__init__.py:34
32 from . import rand
33 from . import tpe
---> 34 from . import atpe
35 from . import mix
36 from . import anneal

File ~/gitlab/catboost-experiments/.venv/lib/python3.12/site-packages/hyperopt/atpe.py:19
17 import numpy
18 import numpy.random
---> 19 import pkg_resources
20 import tempfile
21 import scipy.stats

ModuleNotFoundError: No module named 'pkg_resources'
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.