1. Check the existing env environment of conda
conda env list
2. Create a new env environment through conda
conda create -n pytorch_env python=3.8
The above command will create a virtual environment named "pytorch_env" and specify the Python version as 3.8. You can choose the required Python version according to your needs.
3. Activate pytorch_env environment
conda activate pytorch_env
4. In the new environment pytorch_env, install the plug-in started by jupyter notebook
conda install nb_conda
5. In the new environment pytorch_env, start jupyter notebook
jupyter notebook
conda create --name <environment_name>
: Create a new virtual environment, where<environment_name>
is the name you gave the environment.conda activate <environment_name>
: Activate (open) the virtual environment with the specified name.conda deactivate
: Deactivate (disable) the currently activated virtual environment.conda env list
: List all created virtual environments.conda install <package_name>
: Install the package with the specified name.conda remove <package_name>
: Remove the package with the specified name from the current environment.conda update <package_name>
: Update the package with the specified name to the latest version.conda search <package_name>
: Search for packages available for installation.