csdms / babelizer

Transform BMI-wrapped models into Python packages
https://babelizer.readthedocs.io
MIT License
4 stars 3 forks source link

Fix installation with Conda #99

Open aufdenkampe opened 7 months ago

aufdenkampe commented 7 months ago

Following today's new Installation instructions From Source using Conda, I got this error:

(babelizer) aaufdenkampe@ExcaliburMac2 babelizer % conda install --file=requirements.txt -c conda-forge

CondaValueError: could not parse 'importlib-resources; python_version < '3.12'' in: requirements.txt

It worked using pip: $ pip install -e .

mcflugen commented 7 months ago

@aufdenkampe Although conda understands the most basic pip requirements file, it doesn't understand markers or specifiers—as we have in this file.

We should probably just remove the conda installation option from the instructions for installing from source.

aufdenkampe commented 7 months ago

That works for me!