Table of contents
Table of contents generated with markdown-toc
conda env create -f environment.yml
conda activate ./venv
conda env export --verbose --no-builds --from-history --prefix ./venv > environment.yml
Important:
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.yml
conda install <dependency>
conda remove <dependency>
conda list
python src/app.py
uvicorn main:app --reload