1 Clone the new environment
First use the –clone command to copy an old environment, then rename and delete the old environment
conda create --name tf2 --clone tf1
tf2 - new environment name
tf1 - old environment name
- Clone the tf1 virtual environment into the tf2 virtual environment
2 Delete the old environment
conda remove --name tf1 --all
- Delete the old virtual environment name
3 View the virtual environment
conda info --envs
- The name modification is successful, but it takes a long time when the virtual environment is relatively large