Reputation: 1
I am trying to set up a package from a github repo. My default python in the conda environment is python 3.12. The pyproject.toml of the repo has the following lines:
[project]
name = "example_package"
version = "0.1"
requires-python = ">=3.12"
dependencies = [
"numpy==1.26.4",
"tqdm>=4.66.6",
"pandas>=2.2.3",
"submitit>=1.5.2",
]
[project.optional-dependencies]
dev = [
"pre-commit>=4.0.1",
"ipykernel>=6.29.5",
"mypy>=1.13.0",
"pytest>=8.3.3",
]
I try to install with command pip install -e .[dev]
And get the following error:
Defaulting to user installation because normal site-packages is not writeable
Obtaining file:///opt/hpcaas/.mounts/fs-18y913037289/home/user/example-repo
Installing build dependencies ... done
Checking if build backend supports build_editable ... done
Getting requirements to build editable ... done
Preparing editable metadata (pyproject.toml) ... done
Requirement already satisfied: numpy==1.26.4 in /opt/hpcaas/.mounts/fs-18y913037289/home/user/.local/lib/python3.10/site-packages (from example_package==0.1) (1.26.4)
Requirement already satisfied: tqdm>=4.66.6 in /usr/local/lib/python3.10/dist-packages (from example_package==0.1) (4.67.1)
Collecting pandas>=2.2.3 (from example_package==0.1)
Using cached pandas-2.2.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (89 kB)
Requirement already satisfied: submitit>=1.5.2 in /opt/hpcaas/.mounts/fs-18y913037289/home/user/.local/lib/python3.10/site-packages (from example_package==0.1) (1.5.2)
Collecting wandb>=0.18.5 (from example_package==0.1)
Using cached wandb-0.19.7-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (10 kB)
INFO: pip is looking at multiple versions of example_package to determine which version is compatible with other requirements. This could take a while.
ERROR: Package 'example_package' requires a different Python: 3.10.12 not in '>=3.12'
I don't understand this error. Seems like there is a version of example_package already installed and pip is trying to source that instead of referring to the pyproject.toml. How do I locate where example_package is stored and pip install the new version to my conda environment?
Upvotes: 0
Views: 26