problem accessing the pytorch versions in conda environment

Viewed 181

I am a user of a server with no root access.

I have installed PyTorch version 1.9.0 in conda environment. But when I access it via Jupyter notebook, it still shows conda base version (PyTorch 1.3.0).

Although I am running the notebook from the environment. See screenshots for clarification.

enter image description here

enter image description here

My requirement is to run PyTorch 1.9.0 version to run in the notebook rather than the current 1.3.0

Update: I am using Jupyter via SSH (it is installed on the server, I am accessing via SSH client)

1 Answers

After activating your target conda env, checl the location of jupyter:

conda activate paper
which jupyter

you have to see smth like

anaconda3/envs/paper/bin/jupyter

if not, for example you have this

anaconda3/bin/jupyter

That means you are using jupyter from base conda env, to fix this you have to install jupter inside your paper conda env

Related