reaction-network icon indicating copy to clipboard operation
reaction-network copied to clipboard

versions of various dependent libraries

Open wangxuan1586 opened this issue 5 months ago • 2 comments

I'm currently attempting to replicate the examples provided in the article. However, I keep running into conflicts while installing the various dependency libraries. Could the author kindly share the versions of all the installed dependency libraries?

wangxuan1586 avatar Jun 27 '25 13:06 wangxuan1586

Can you please post a screenshot (or copy+paste) the conflicts you are getting and what installation command you are running?

I have not updated the package dependencies in a while; it is likely fixable with a small bump of versions

mattmcdermott avatar Jun 27 '25 16:06 mattmcdermott

Can you please post a screenshot (or copy+paste) the conflicts you are getting and what installation command you are running?

I have not updated the package dependencies in a while; it is likely fixable with a small bump of versions

Thank you so much for your reply. My issue has now been resolved. Previously, I tried creating a Python 3.9 virtual environment and installing numpy, scipy, pandas, mp-api, pymatgen, and reaction-network, but encountered compatibility issues:

package pymatgen-2024.8.9-py39h941ed31_0 requires python_abi 3.9.* *_cp39, but none of the providers can be installed

Could not solve for environment specs The following packages are incompatible: ├─ pymatgen >=2024.8 * is installable and it requires │ └─ python_abi =3.9 *_cp39, which requires │ └─ python =3.9 *, which can be installed; └─ python =3.10 * is not installable because it conflicts with any installable versions previously reported.

I then created a Python 3.10 virtual environment and attempted to install the same dependencies, but received:

Could not solve for environment specs The following packages are incompatible: ├─ pin on python 3.10.* =* * is installable and it requires │ └─ python =3.10 *, which can be installed; ├─ pymatgen =2024.8.9 * is installable with the potential options │ ├─ pymatgen 2024.8.9 would require │ │ └─ scipy >=1.13.0 * with the potential options │ │ ├─ scipy [1.13.0|1.13.1|...|1.15.3], which can be installed; │ │ ├─ [...] (additional conflicts with Python versions 3.11/3.12/3.13) │ └─ [...] (further version conflicts) └─ scipy =1.11.4 * is not installable because there are no viable options └─ [...] (dependency conflicts as previously explained)

Pins seem to be involved in the conflict. Currently pinned specs:

python=3.10

This morning, I reattempted creating a Python 3.10 environment, and it now works correctly. The current versions in my environment are: numpy 2.2.6, pymatgen 2025.6.4, scipy 1.15.3, pandas 2.3.0, mp-api 0.45.7, reaction-network 8.3.0. These versions are confirmed to be compatible and functional.

wangxuan1586 avatar Jun 28 '25 02:06 wangxuan1586