Conda New Env
"Conda environments provide a way to manage multiple sets of packages and dependencies, which can be useful for managing different projects or testing different versions of packages."
To create a new conda environment, you can use the following command in your terminal or Anaconda prompt:
conda create --name [env_name]
Replace [env_name] with the name you want to give to your new environment. For example, to create a new environment named myenv, you would run:
conda create --name myenv
By default, a new conda environment will include only a minimal set of packages. To install additional packages into your new environment, you can use the following command:
conda install --name [env_name] [package_name]
Replace [env_name] with the name of your environment and [package_name] with the name of the package you want to install. For example, to install the numpy package into the myenv environment, you would run:
conda install --name myenv numpy
You can switch between your different conda environments using the following command:
conda activate [env_name]
And to deactivate the current environment:
conda deactivate