Closed deft899 closed 1 year ago
Hello.
It seems like you are encountering problems with your setuptools. I would suggest to upgrade your pip and setuptools and try installing causalml again You can do this with the following commands
For pip:
python -m pip install -U pip
For setuptools:
pip install -upgrade setuptools
I hope this works
I have a similar issue: after following your suggestions, I am unable to install the causalml packages.
Error: Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/ Collecting causalml Using cached causalml-0.13.0.tar.gz (535 kB) error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully. │ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip. Preparing metadata (setup.py) ... error error: metadata-generation-failed
× Encountered error while generating package metadata. ╰─> See above for output.
note: This is an issue with the package mentioned above, not pip. hint: See above for details.
did you try installing from source
Hi Talha,
Yes, I did.
Is it working from your side?
Please let me know. I am in serious crisis.
Best regards Jakir
Get Outlook for iOShttps://aka.ms/o0ukef
From: Talha Anwar @.> Sent: Wednesday, May 10, 2023 1:27 pm To: uber/causalml @.> Cc: Talukder, Md Jakir Hasan - talmh001 @.>; Comment @.> Subject: Re: [uber/causalml] some problems in installing causalml (Issue #593)
did you try installing from source
— Reply to this email directly, view it on GitHubhttps://github.com/uber/causalml/issues/593#issuecomment-1541318198, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AX3WNRD2VX7CCOTT7TZORTDXFMG2BANCNFSM6AAAAAATQKF3MI. You are receiving this because you commented.Message ID: @.***>
This code will work in google colab:
!git clone https://github.com/uber/causalml !cd causalml !pip install -e
!pip install /content/causalml
from causalml.inference.meta import BaseXRegressor, BaseRRegressor, BaseSRegressor, BaseTRegressor from causalml.inference.nn import CEVAE from causalml.propensity import ElasticNetPropensityModel from causalml.metrics import * from causalml.dataset import simulate_hidden_confounder
When installing causalml, I used methods including pip and conda, but none of them were successfully installed. Here are the errors I installed with the pip command, I don't know how to solve it