py-why/dowhy

Not able to install dowhy with Python 3.8.3 as an Anaconda distro.

Ackbach opened this issue · 10 comments

I have a fresh install of Anaconda with Python 3.8.3, but I am not able to install with the conda command; I get conflicts that conda is not able to resolve. This is not the first time I've had significant difficulty in installing dowhy. Can installation be made easier? Perhaps more checking of package versions, for greater compatibility?

Do I just install with the pip command?

Sorry about this @Ackbach . I'm less experienced with conda. Let me check into this and update the conda package. This is probably due to some version conflicts, as you mention.

I hope the pip command works for you. That is better-tested on different versions so far.

@Ackbach I did some exploration today. Were you facing "Solving Environment issues"? Here are two suggestions to fix this error:

  1. Try conda update --all and then install dowhy.
  2. If that does not work, then use conda config --set channel_priority false and try to install again.

The second solution worked for me in multiple environments. If none of these work, let me know and I'll continue to work on improving the conda package.

Hi - I get this error even after conda config --set channel_priority false.
My env is MacOS Catalina, and a miniconda install. I have created environment with Python 3.5.

(base)  ~/Source/detr   master ●  source activate py35
(py35)  ~/Source/detr   master ●  conda config --set channel_priority false
(py35)  ~/Source/detr   master ●  conda install -c conda-forge dowhy
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: /
Found conflicts! Looking for incompatible packages.
This can take several minutes. Press CTRL-C to abort.
failed

UnsatisfiableError: The following specifications were found to be incompatible with each other:

Output in format: Requested package -> Available versions

Oh, I see. Looks like there there are more incompatibilities with Python 35/conda. Can you share the full output of the specifications/version numbers that are found to be incompatible @bdutta19?

HI -- Added the whole screenshot. So I created a new conda env with python 3.5 and then attempted to install dowhy.
I have also included a conda list. Hope this helps a bit.
I will keep digging on my side and will let you know if I find anything.

thanks

image

These are the packages that failed.. I could install with Python 3.8.5

Specifications:

  • pandas[version='>=0.24'] -> python[version='>=2.7,<2.8.0a0|>=3.6,<3.7.0a0|>=3.8,<3.9.0a0|>=3.7,<3.8.0a0']

Your python: python=3.5

  • sympy[version='>=1.4'] -> python[version='>=2.7,<2.8.0a0|>=3.8,<3.9.0a0|>=3.7,<3.8.0a0|>=3.6,<3.7.0a0']

Your python: python=3.5

Specifications:

  • pydot[version='>=1.4'] -> python[version='>=2.7,<2.8.0a0|>=3.6,<3.7.0a0|>=3.8,<3.9.0a0|>=3.7,<3.8.0a0']

Your python: python=3.5

Thanks @bdutta19. I tried a fresh environment using conda and can report that DoWhy successfully installs using conda install -c conda-forge dowhy on:

  • python3.8 (conda create -n myenv python=3.8)
  • python3.7 (conda create -n myenv python=3.7)
  • python3.6 (conda create -n myenv python=3.6)

DoWhy (now PyWhy) should have a "DoInstall" package.

I have many of the above problems, none of the pip or conda recommendations work.

It's too bad, DoWhy seems like a good causal inference toolkit, except I can't install it.

pip usually works well. Can you share the error you obtain while installing with pip? I'd suggest starting with a new virtual environment, if you haven't already.