- Conda environments https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#create-env-file-manually
- pip-tools https://github.com/jazzband/pip-tools
conda env create -f environment.yml conda activate py-elastic-int
maintain dependencies (https://github.com/jazzband/pip-tools)
- create/upgrade new requirements.txt (may be skipped)
pip-compile requirements.in
pip-compile --upgrade requirements.in
- install packages from requirements.txt
Be careful: pip-sync is meant to be used only with a requirements.txt generated by pip-compile.
pip-sync
# currently tries to uninstall pre-installed packages by conda environmentpip-sync --user