Jupyter Notebook: change the python exvironment

First, avtivate the environment. You can use this command:

conda activate pytorch

Jupyter Notebook: change the python exvironment_第1张图片

Then install a package named ipykernel after you change to the environment you need.

conda install ipykernel

Jupyter Notebook: change the python exvironment_第2张图片

Jupyter Notebook: change the python exvironment_第3张图片

Finally, add it to your jupyter such as:

python -m ipykernel install --user --name pytorch --display-name "pytorch"

Jupyter Notebook: change the python exvironment_第4张图片

你可能感兴趣的:(python,jupyter,开发语言)