machinelearningnuremberg / DeepPipe

[KDD 2023] Deep Pipeline Embeddings for AutoML
BSD 3-Clause "New" or "Revised" License
15 stars 2 forks source link

Can't install on Google Colab #1

Closed ericleonardo closed 1 year ago

ericleonardo commented 1 year ago

Hi! Please, how can DeepPipe be installed on Colab? I tried pip install deeppipe_api but resulted in error. Thanks!

Collecting deeppipe_api
  Downloading deeppipe_api-0.1.1-py3-none-any.whl (51.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 51.3/51.3 MB 7.0 MB/s eta 0:00:00
Collecting gpytorch==1.4.2 (from deeppipe_api)
  Downloading gpytorch-1.4.2-py2.py3-none-any.whl (492 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 492.5/492.5 kB 46.8 MB/s eta 0:00:00
Collecting numpy==1.20.3 (from deeppipe_api)
  Downloading numpy-1.20.3.zip (7.8 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.8/7.8 MB 75.9 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting openml==0.12.2 (from deeppipe_api)
  Downloading openml-0.12.2.tar.gz (119 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 119.9/119.9 kB 13.8 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting pandas==1.2.4 (from deeppipe_api)
  Downloading pandas-1.2.4.tar.gz (5.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.5/5.5 MB 72.7 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting protobuf==3.17.3 (from deeppipe_api)
  Downloading protobuf-3.17.3-py2.py3-none-any.whl (173 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 173.9/173.9 kB 17.5 MB/s eta 0:00:00
Requirement already satisfied: scikit-learn==1.2.2 in /usr/local/lib/python3.10/dist-packages (from deeppipe_api) (1.2.2)
Collecting tensorboard==2.5.0 (from deeppipe_api)
  Downloading tensorboard-2.5.0-py3-none-any.whl (6.0 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.0/6.0 MB 123.7 MB/s eta 0:00:00
Collecting tensorly==0.7.0 (from deeppipe_api)
  Downloading tensorly-0.7.0-py3-none-any.whl (198 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 198.1/198.1 kB 22.4 MB/s eta 0:00:00
INFO: pip is looking at multiple versions of deeppipe-api to determine which version is compatible with other requirements. This could take a while.
Collecting deeppipe_api
  Downloading deeppipe_api-0.1.0-py3-none-any.whl (51.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 51.3/51.3 MB 6.9 MB/s eta 0:00:00
  Downloading deeppipe_api-0.0.14-py3-none-any.whl (51.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 51.3/51.3 MB 6.8 MB/s eta 0:00:00
  Downloading deeppipe_api-0.0.12-py3-none-any.whl (107 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 107.5/107.5 kB 13.1 MB/s eta 0:00:00
  Downloading deeppipe_api-0.0.11-py3-none-any.whl (107 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 107.5/107.5 kB 12.6 MB/s eta 0:00:00
  Downloading deeppipe_api-0.0.10-py3-none-any.whl (107 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 107.4/107.4 kB 13.9 MB/s eta 0:00:00
  Downloading deeppipe_api-0.0.9-py3-none-any.whl (106 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 106.9/106.9 kB 15.1 MB/s eta 0:00:00
  Downloading deeppipe_api-0.0.8-py3-none-any.whl (106 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 106.8/106.8 kB 14.8 MB/s eta 0:00:00
INFO: pip is looking at multiple versions of deeppipe-api to determine which version is compatible with other requirements. This could take a while.
  Downloading deeppipe_api-0.0.7-py3-none-any.whl (106 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 106.8/106.8 kB 13.6 MB/s eta 0:00:00
  Downloading deeppipe_api-0.0.6-py3-none-any.whl (96 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 96.5/96.5 kB 13.3 MB/s eta 0:00:00
  Downloading deeppipe_api-0.0.5-py3-none-any.whl (96 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 96.5/96.5 kB 14.0 MB/s eta 0:00:00
  Downloading deeppipe_api-0.0.4-py3-none-any.whl (96 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 96.3/96.3 kB 11.7 MB/s eta 0:00:00

ERROR: Cannot install deeppipe-api==0.0.10, deeppipe-api==0.0.11, deeppipe-api==0.0.12, deeppipe-api==0.0.14, deeppipe-api==0.0.4, deeppipe-api==0.0.5, deeppipe-api==0.0.6, deeppipe-api==0.0.7, deeppipe-api==0.0.8, deeppipe-api==0.0.9, deeppipe-api==0.1.0 and deeppipe-api==0.1.1 because these package versions have conflicting dependencies.

The conflict is caused by:
    deeppipe-api 0.1.1 depends on torch==1.8.1
    deeppipe-api 0.1.0 depends on torch==1.8.1
    deeppipe-api 0.0.14 depends on torch==1.8.1
    deeppipe-api 0.0.12 depends on torch==1.8.1
    deeppipe-api 0.0.11 depends on torch==1.8.1
    deeppipe-api 0.0.10 depends on torch==1.8.1
    deeppipe-api 0.0.9 depends on torch==1.8.1
    deeppipe-api 0.0.8 depends on torch==1.8.1
    deeppipe-api 0.0.7 depends on torch==1.8.1
    deeppipe-api 0.0.6 depends on torch==1.8.1
    deeppipe-api 0.0.5 depends on torch==1.8.1
    deeppipe-api 0.0.4 depends on torch==1.8.1

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
sebastianpinedaar commented 1 year ago

Hi!

Thanks for pointing this out! Indeed it happens because the package was developed and tested for python 3.9, whereas collab offers python 3.10. Relaxing the dependencies might ocassionally create unusual behaviour.

However, if you want to try it in collab on python 3.10, you still can do it! I created a collab notebook with an example that you and anyone else can test easily here. It already downloads the dependencies, the code base and necessary meta-data.

We welcome your interested and curiosity! Please let us know how it works for you.

Best,

Sebastian

ericleonardo commented 1 year ago

Thank you, @sebastianpinedaar !