-
Notifications
You must be signed in to change notification settings - Fork 789
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to install causalml #609
Comments
same problem. I am also facing |
The same. |
I could use the package using Anaconda. It appears to work better with Python 3.8 (Current Google Colab uses 3.9, the typical downgrading generates a messy behaviour.. ). I use a terminal from Anaconda (tested in a Apple Mac Pro): conda create -n my_env python=3.8 If someone could run this package in Colab, I appreciate it. |
same in mac |
Got same issue on Ubuntu 22.04
|
Installing from source installed the package. |
Same issue when trying to install the package on Sagemaker studio or Googlecolab. Downgrading the python to 3.8 did not help. |
python 3.8.13, Sagemaker studio Requirement already satisfied: setuptools>=41.0.0 in /opt/conda/lib/python3.8/site-packages (from -r requirements.txt (line 1)) (67.6.1)
|
Initially run the following code:!pip install Causalml !git clone https://github.com/uber/causalml.git ! git clone https://github.com/uber/causalml.git !pip install numpy==1.23.4 !pip install -U scikit-learn==1.0.2 !pip uninstall scikit-learn when show- Proceed (Y/n)? Put Y and then enterThen run-import pandas as pd from sklearn.linear_model import LinearRegression from causalml.inference.meta import BaseXRegressor, BaseRRegressor, BaseSRegressor, BaseTRegressor %matplotlib inline warnings.filterwarnings('ignore') plt.style.use('fivethirtyeight') When it is not running, go to "Runtime" and click on "Restart and run all"It will definitely work in google colab, but do not forget # when show- Proceed (Y/n)? Put Y and then enter |
The OP @g0odplayer00 describes not being able to run causalML in a Google Colab. I am able to run For a working example, see: https://colab.research.google.com/drive/1mVKxa5cKXZSLcnuEYGlvePhWPL00FH_E?usp=sharing For other issues, like that described by @talhaanwarch, please make sure that you have
Please note that colab currently run's python 3.10.12, which is not supported and which will break when attempting to run tests. Currently only py 3.7, 3.8, and 3.9 are supported. |
Wonderful!
From: ras44 ***@***.***>
Sent: Thursday, 13 July 2023 2:16 AM
To: uber/causalml ***@***.***>
Cc: Talukder, Md Jakir Hasan - talmh001 ***@***.***>; Comment ***@***.***>
Subject: Re: [uber/causalml] Unable to install causalml (Issue #609)
The OP @g0odplayer00<https://github.com/g0odplayer00> describes not being able to run causalML in a Google Colab.
I am able to run !pip install causalml in a Google colab, but did have to fix numpy==1.23 and the restart the runtime.
For a working example, see:
https://colab.research.google.com/drive/1mVKxa5cKXZSLcnuEYGlvePhWPL00FH_E?usp=sharing<https://colab.research.google.com/drive/1mVKxa5cKXZSLcnuEYGlvePhWPL00FH_E?usp=sharing>
For other issues, like that described by @talhaanwarch<https://github.com/talhaanwarch>, please make sure that you have gcc and g++ installed, for example:
sudo apt-get install -y gcc g++
—
Reply to this email directly, view it on GitHub<#609 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AX3WNRENBTXIJZBTRXYI7ELXP3IERANCNFSM6AAAAAAWK5QQHE>.
You are receiving this because you commented.Message ID: ***@***.******@***.***>>
|
Closed since the issue is solved. |
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
unable to install causalml in any means
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
running on google colab
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: