py-why / py-why/EconML

Conflicting packages sklearn

Open
#386 13 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Jupyter Notebook
Stars
4.8k
Forks
827
PR merge metrics
No merged PRs in 30d

Description

Hi all,

so I have the following issue when importing some of the packages:

cannot import name 'parse_version' from 'sklearn.utils.fixes' (/Users/federiconutarelli/anaconda3/lib/python3.7/site-packages/sklearn/utils/fixes.py)

E.g. this happened with

from econml.dml import LinearDMLCateEstimator

I also tried to pip install -U sklearn but a part from "requirement already satisfied" the issue seems not to be solved. Is there a specific reason fr that? Any conflicting packages? Or it is just a problem of my environment?

Thank you,

Federico

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing from econml.dml import LinearDMLCateEstimator in the reported Anaconda Python 3.7 environment and inspect the versions of EconML and scikit-learn involved. Trace the missing parse_version import from sklearn.utils.fixes; done means identifying a reproducible package conflict or confirming that the problem is specific to the reported environment.

Written by the indexing model from the issue text.

Assessment

Tech stack
anaconda, python, scikit-learn
Domain
machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.