cnellington / Contextualized

An SKLearn-style toolbox for estimating and analyzing models, distributions, and functions with context-specific parameters.
http://contextualized.ml/
GNU General Public License v3.0
64 stars 7 forks source link

pip install does not work with python 12 #246

Open abhinadduri opened 3 months ago

abhinadduri commented 3 months ago

Hi, I tried to pip install this package with python 12 but faced some issues with installation in a fresh conda environment. Below I've pasted my requirements.txt and error log. BTW, using Python 3.10.14 works perfectly!

git+https://github.com/cnellington/Contextualized.git@2d2bb755c5134dfb4f9b6f0ebf501910ed881155 scikit-learn==1.4.1.post1 scipy==1.13.0 pandas==2.2.2 matplotlib==3.8.4

(cggn2) root@puget-238061:/nvme1/abhinav/ContextualizedNetworksSimulation# python --version
Python 3.12.3
(cggn2) root@puget-238061:/nvme1/abhinav/ContextualizedNetworksSimulation# pip install -r requirements.txt
Collecting git+https://github.com/cnellington/Contextualized.git@2d2bb755c5134dfb4f9b6f0ebf501910ed881155 (from -r requirements.txt (line 1))
  Cloning https://github.com/cnellington/Contextualized.git (to revision 2d2bb755c5134dfb4f9b6f0ebf501910ed881155) to /tmp/pip-req-build-cz0f1urd
  Running command git clone --filter=blob:none --quiet https://github.com/cnellington/Contextualized.git /tmp/pip-req-build-cz0f1urd
  Running command git rev-parse -q --verify 'sha^2d2bb755c5134dfb4f9b6f0ebf501910ed881155'
  Running command git fetch -q https://github.com/cnellington/Contextualized.git 2d2bb755c5134dfb4f9b6f0ebf501910ed881155
  Resolved https://github.com/cnellington/Contextualized.git to commit 2d2bb755c5134dfb4f9b6f0ebf501910ed881155
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting scikit-learn==1.4.1.post1 (from -r requirements.txt (line 2))
  Using cached scikit_learn-1.4.1.post1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (11 kB)
Collecting scipy==1.13.0 (from -r requirements.txt (line 3))
  Using cached scipy-1.13.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (60 kB)
Collecting pandas==2.2.2 (from -r requirements.txt (line 4))
  Using cached pandas-2.2.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (19 kB)
Collecting matplotlib==3.8.4 (from -r requirements.txt (line 5))
  Using cached matplotlib-3.8.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (5.8 kB)
Collecting seaborn==0.13.2 (from -r requirements.txt (line 6))
  Using cached seaborn-0.13.2-py3-none-any.whl.metadata (5.4 kB)
Collecting numpy<2.0,>=1.19.5 (from scikit-learn==1.4.1.post1->-r requirements.txt (line 2))
  Using cached numpy-1.26.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (61 kB)
Collecting joblib>=1.2.0 (from scikit-learn==1.4.1.post1->-r requirements.txt (line 2))
  Using cached joblib-1.4.2-py3-none-any.whl.metadata (5.4 kB)
Collecting threadpoolctl>=2.0.0 (from scikit-learn==1.4.1.post1->-r requirements.txt (line 2))
  Using cached threadpoolctl-3.5.0-py3-none-any.whl.metadata (13 kB)
Collecting python-dateutil>=2.8.2 (from pandas==2.2.2->-r requirements.txt (line 4))
  Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl.metadata (8.4 kB)
Collecting pytz>=2020.1 (from pandas==2.2.2->-r requirements.txt (line 4))
  Using cached pytz-2024.1-py2.py3-none-any.whl.metadata (22 kB)
Collecting tzdata>=2022.7 (from pandas==2.2.2->-r requirements.txt (line 4))
  Using cached tzdata-2024.1-py2.py3-none-any.whl.metadata (1.4 kB)
Collecting contourpy>=1.0.1 (from matplotlib==3.8.4->-r requirements.txt (line 5))
  Using cached contourpy-1.2.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (5.8 kB)
Collecting cycler>=0.10 (from matplotlib==3.8.4->-r requirements.txt (line 5))
  Using cached cycler-0.12.1-py3-none-any.whl.metadata (3.8 kB)
Collecting fonttools>=4.22.0 (from matplotlib==3.8.4->-r requirements.txt (line 5))
  Downloading fonttools-4.52.1-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (160 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 160.9/160.9 kB 5.1 MB/s eta 0:00:00
Collecting kiwisolver>=1.3.1 (from matplotlib==3.8.4->-r requirements.txt (line 5))
  Using cached kiwisolver-1.4.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (6.4 kB)
Collecting packaging>=20.0 (from matplotlib==3.8.4->-r requirements.txt (line 5))
  Using cached packaging-24.0-py3-none-any.whl.metadata (3.2 kB)
Collecting pillow>=8 (from matplotlib==3.8.4->-r requirements.txt (line 5))
  Using cached pillow-10.3.0-cp312-cp312-manylinux_2_28_x86_64.whl.metadata (9.2 kB)
Collecting pyparsing>=2.3.1 (from matplotlib==3.8.4->-r requirements.txt (line 5))
  Using cached pyparsing-3.1.2-py3-none-any.whl.metadata (5.1 kB)
Collecting igraph>=0.11.0 (from contextualized-ml==0.2.8->-r requirements.txt (line 1))
  Using cached igraph-0.11.5-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (3.9 kB)
Collecting lightning>=2.0.0 (from contextualized-ml==0.2.8->-r requirements.txt (line 1))
  Using cached lightning-2.2.5-py3-none-any.whl.metadata (53 kB)
INFO: pip is looking at multiple versions of contextualized-ml to determine which version is compatible with other requirements. This could take a while.
ERROR: Ignored the following versions that require a different python version: 1.10.0 Requires-Python <3.12,>=3.8; 1.10.0rc1 Requires-Python <3.12,>=3.8; 1.10.0rc2 Requires-Python <3.12,>=3.8; 1.10.1 Requires-Python <3.12,>=3.8; 1.21.2 Requires-Python >=3.7,<3.11; 1.21.3 Requires-Python >=3.7,<3.11; 1.21.4 Requires-Python >=3.7,<3.11; 1.21.5 Requires-Python >=3.7,<3.11; 1.21.6 Requires-Python >=3.7,<3.11; 1.6.2 Requires-Python >=3.7,<3.10; 1.6.3 Requires-Python >=3.7,<3.10; 1.7.0 Requires-Python >=3.7,<3.10; 1.7.1 Requires-Python >=3.7,<3.10; 1.7.2 Requires-Python >=3.7,<3.11; 1.7.3 Requires-Python >=3.7,<3.11; 1.8.0 Requires-Python >=3.8,<3.11; 1.8.0rc1 Requires-Python >=3.8,<3.11; 1.8.0rc2 Requires-Python >=3.8,<3.11; 1.8.0rc3 Requires-Python >=3.8,<3.11; 1.8.0rc4 Requires-Python >=3.8,<3.11; 1.8.1 Requires-Python >=3.8,<3.11; 1.9.0 Requires-Python >=3.8,<3.12; 1.9.0rc1 Requires-Python >=3.8,<3.12; 1.9.0rc2 Requires-Python >=3.8,<3.12; 1.9.0rc3 Requires-Python >=3.8,<3.12; 1.9.1 Requires-Python >=3.8,<3.12
ERROR: Could not find a version that satisfies the requirement torch<2.2.0,>=2.0.0 (from contextualized-ml) (from versions: 2.2.0, 2.2.1, 2.2.2, 2.3.0)
ERROR: No matching distribution found for torch<2.2.0,>=2.0.0