Skip to content

setup.py looks for libraries outside python 3.6 environment; possibly broken? #139

Open
@biplav-s

Description

  1. We install aix360 as specified in instruction using python 3.6 in a conda environment on Mac.

"conda create --name aix360 python=3.6
conda activate aix360"

  1. Then we do clone without issue
    "git clone https://github.com/Trusted-AI/AIX360
    "

  2. 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

  1. But when we can go to examples/tutorials and try HELOC notebook
    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.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions