Table of contents
Table of contents generated with markdown-toc
conda env create -f environment.ymlconda activate ./venvconda env export --verbose --no-builds --from-history --prefix ./venv > environment.ymlImportant:
The export command will set prefix and name as an absolute path from your personal home directory to the ./venv in the root of the project, so you'll need to convert them back to a relative path pointing to the project's root directory (~/path/to/repo/venv -> ./venv).
You can do this on linux with the following sed command:
sed -i 's|prefix: .*|prefix: ./venv|; s|name: .*|name: ./venv|' environment.ymlconda install <dependency>conda remove <dependency>conda listpython src/app.pyuvicorn main:app --reload