Closed sbenthall closed 3 years ago
environment.yml
file. This tends to have pinned dependencies. It can be created automatically. It should replace conda-requirements.txt
: https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.htmlrequirements.txt
file; conda-setup.sh
should install from this file so we don't need to do as much file syncing.That would be an incremental improvement over what we have now.
I think environment.yml
isn't as easy a cross-platform approach for conda installation and management as it might seem. See this, among others: https://stackoverflow.com/questions/39280638/how-to-share-conda-environments-across-platforms
Good documentation here on how to use both conda and pip, including that pip should be used after conda, and storing requirements in text files: https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#using-pip-in-an-environment
Thanks @npdoty these links are helpful. My read is that:
@sbenthall yeah, I think we can switch to environment.yml
rather than conda-requirements.txt, as long as we follow the recommendations about platform independence (not using specific version pins unless necessary, probably using the --from-history
flag, maybe we still have to update it manually sometimes).
Drop conda support! just use pip!
Or should we?