Skip to content

AttributeError: module 'sklift' has no attribute 'viz' #217

@AlmogW

Description

@AlmogW

🐛 Bug

Hi!
I got an error after install scikit-uplift on a fresh conda environment.

import sklift
sklift.viz
AttributeError: module 'sklift' has no attribute 'viz'

from sklift import viz
ImportError: cannot import name 'check_matplotlib_support' from 'sklearn.utils' (C:\Users\ALMOGW\Anaconda3\envs\causal_env\lib\site-packages\sklearn\utils\__init__.py)
`

To Reproduce

Steps to reproduce the behavior:

  1. conda create -n causal_env python=3.9.12
  2. conda activate causal_env
  3. pip install scikit-uplift
  4. run the commands above

Environment

  • scikit-uplift version: 0.5.1
  • scikit-learn version: 1.6.0 (I tried older versions as well)
  • Python version : 3.9.12
  • OS : Windows

Additional context

  • I do not have access to conda-forge
  • I was able to use it in the past on the same computer but I had to reinstall anaconda and create a new env from scratch

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions