![]() To create a named environment ‘pytorch’ from a file ‘requirements.txt’: conda env create -f requirements.txt -n pytorch You can do this by modifying the file and adding the pip modules as shown: name: rq_env This allows you to install modules that were installed with pip as well. To export only the modules that were requested: conda env export -from-history > test.yml To export a specific environment, in this case just the base environment (usually called ‘base’): conda env export -n base > requirements.txt To export a conda environment from within the environment to a file ‘test.yml’: conda env export > test.yml List all conda environments: conda env list To remove an environment named ‘envname’: conda env remove -n envname To create an environment from the base environment: conda create -name myenv -clone base To create a named environment from a file ‘test.yml’: conda env create -f test.yml -n pytorch The environment name comes from the line ‘name: tag’ inside the ‘test.yml’ file. To create an environment from a file ‘test.yml’: conda env create -f test.yml To create a conda environment named ‘myenv’: conda create -name myenv
0 Comments
Leave a Reply. |