tomasstolker / species

Toolkit for atmospheric characterization of directly imaged exoplanets
https://species.readthedocs.io
MIT License
22 stars 10 forks source link

Installation error: No matching distribution found for matplotlib~=3.8.0 #92

Closed gabrielastro closed 6 months ago

gabrielastro commented 6 months ago

Hello! I am trying to install species on another machine (where I do not have sudo rights) and get:

[…]/species$ pip install -e .
Defaulting to user installation because normal site-packages is not writeable
…  # many things that get installed without problem
INFO: pip is looking at multiple versions of species 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: 2.2.2 Requires-Python >=3.9; 2.2.2rc3 Requires-Python >=3.9; 3.8.0 Requires-Python >=3.9; 3.8.0rc1 Requires-Python >=3.9; 3.8.1 Requires-Python >=3.9; 3.8.2 Requires-Python >=3.9; 3.8.3 Requires-Python >=3.9; 5.3 Requires-Python >=3.9; 5.3.1 Requires-Python >=3.9; 5.3.2 Requires-Python >=3.9; 5.3.3 Requires-Python >=3.9; 5.3.4 Requires-Python >=3.9; 5.3rc1 Requires-Python >=3.9; 6.0.0 Requires-Python >=3.9; 6.0.0rc1 Requires-Python >=3.9; 6.0.0rc2 Requires-Python >=3.9
ERROR: Could not find a version that satisfies the requirement matplotlib~=3.8.0 (from species) (from versions: 0.86, 0.86.1, 0.86.2, 0.91.0, 0.91.1, 1.0.1, 1.1.0, 1.1.1, 1.2.0, 1.2.1, 1.3.0, 1.3.1, 1.4.0, 1.4.1rc1, 1.4.1, 1.4.2, 1.4.3, 1.5.0, 1.5.1, 1.5.2, 1.5.3, 2.0.0b1, 2.0.0b2, 2.0.0b3, 2.0.0b4, 2.0.0rc1, 2.0.0rc2, 2.0.0, 2.0.1, 2.0.2, 2.1.0rc1, 2.1.0, 2.1.1, 2.1.2, 2.2.0rc1, 2.2.0, 2.2.2, 2.2.3, 2.2.4, 2.2.5, 3.0.0rc2, 3.0.0, 3.0.1, 3.0.2, 3.0.3, 3.1.0rc1, 3.1.0rc2, 3.1.0, 3.1.1, 3.1.2, 3.1.3, 3.2.0rc1, 3.2.0rc3, 3.2.0, 3.2.1, 3.2.2, 3.3.0rc1, 3.3.0, 3.3.1, 3.3.2, 3.3.3, 3.3.4, 3.4.0rc1, 3.4.0rc2, 3.4.0rc3, 3.4.0, 3.4.1, 3.4.2, 3.4.3, 3.5.0b1, 3.5.0rc1, 3.5.0, 3.5.1, 3.5.2, 3.5.3, 3.6.0rc1, 3.6.0rc2, 3.6.0, 3.6.1, 3.6.2, 3.6.3, 3.7.0rc1, 3.7.0, 3.7.1, 3.7.2, 3.7.3, 3.7.4, 3.7.5)
ERROR: No matching distribution found for matplotlib~=3.8.0

I have Python 3.8.10. [I get the same error on my computer, actually, but had already installed species before the requirements got increased (my computer got grandfathered in :smile:).] What can I do?

gabrielastro commented 6 months ago

One "solution" was to upgrade python to 3.10 instead of python 3.8.10… I might not be able to do this on every machine but at least it avoids the problem (hence the quotation marks around "solution" :wink:).

tomasstolker commented 6 months ago

Yes! species is only compatible with Python 3.9/3.10/3.11: https://species.readthedocs.io/en/latest/installation.html

As a Python manager, I could recommend pyenv: https://github.com/pyenv/pyenv

And best to use a virtual environment to avoid conflicting versions of dependencies from other packages.

gabrielastro commented 6 months ago

Ah! Sorry! I had not read that page recently and last time, 3.8 was still compatible :). Thanks for the tip about pyenv!