conda create import file code example
Example 1: new env in conda
conda create --name myenv
Example 2: conda create environment based on requirements.txt
pip freeze > requirements.txt
conda create --name myenv
pip freeze > requirements.txt