-
Notifications
You must be signed in to change notification settings - Fork 310
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
setup.py looks for libraries outside python 3.6 environment; possibly broken? #139
Comments
Hey @biplav-s i too am facing the same issue when installing aix360==0.2.1, i tried creating an env with python3.6 and i was successfully able to install tensorflow==1.14, but it also has a torch dependency which is only available in pythonversions>=3.6.2 in which tensorflow==1.14 is not there.
|
i tried |
If your setup.py script is looking for libraries outside the Python 3.6 environment, there are a few potential reasons for this behavior. Here are some steps you can take to troubleshoot and address the issue: Check Python Version Compatibility: bash Create a virtual environment with Python 3.6python3.6 -m venv myenv Activate the virtual environmentsource myenv/bin/activate # On Linux/macOS ormyenv\Scripts\activate # On Windows Install dependenciespip install -r requirements.txt python |
@biplav-s Try again. ("I'm unable to recreate the installation errors mentioned ... on mac.") |
"conda create --name aix360 python=3.6
conda activate aix360"
Then we do clone without issue
"git clone https://github.com/Trusted-AI/AIX360
"
Now we setup dependencies
"pip install -e ."
However, the setup.py is looking and installing outside the 3.6 environment it seems. Error below.
Preparing metadata (setup.py) ... done
Requirement already satisfied: joblib>=0.11 in /usr/local/lib/python3.9/site-packages (from aix360==0.2.1) (1.1.0)
Requirement already satisfied: scikit-learn>=0.21.2 in /usr/local/lib/python3.9/site-packages (from aix360==0.2.1) (1.0.1)
Requirement already satisfied: torch in /usr/local/lib/python3.9/site-packages (from aix360==0.2.1) (1.10.0)
Requirement already satisfied: torchvision in /usr/local/lib/python3.9/site-packages (from aix360==0.2.1) (0.11.1)
Collecting cvxpy==1.0.31
Using cached cvxpy-1.0.31.tar.gz (947 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: cvxopt in /usr/local/lib/python3.9/site-packages (from aix360==0.2.1) (1.2.7)
Requirement already satisfied: Image in /usr/local/lib/python3.9/site-packages (from aix360==0.2.1) (1.5.33)
ERROR: Could not find a version that satisfies the requirement tensorflow==1.14 (from aix360) (from versions: 2.5.0rc0, 2.5.0rc1, 2.5.0rc2, 2.5.0rc3, 2.5.0, 2.5.1, 2.6.0rc0, 2.6.0rc1, 2.6.0rc2, 2.6.0, 2.7.0rc0, 2.7.0rc1)
ERROR: No matching distribution found for tensorflow==1.14
A hack to overcome this error was to install tensorflow manually.
Example: python3 -m pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.12.0-py3-none-any.whl
aix360 is not found
Even if we do (!pip install aix360) to install within the conda python 3.6 environment, the installation does not help.
Is setup.py broken?
I tried on another Mac where I had python=3.7 installed and there was no problem.
The text was updated successfully, but these errors were encountered: