Wednesday, December 11, 2024

Conda & Pip cmd

 

Conda environment export requirements.txt.

conda activate <env>
conda install pip
pip freeze > requirements.txt

For those getting odd path references in requirements.txt, use:

pip list --format=freeze > requirements.txt


No comments:

Post a Comment