Command Line Python And Jupyter Notebooks Use Two Different Versions Of Torch
On my conda environment importing torch from command line Python and from a jupyter notebook yields two different results. Command line Python: $ source activate GNN (GNN) $ python
Solution 1:
You need to sort of make the Anaconda environment recognized in Jupyter using
conda activate myenv
conda install -n myenv ipykernel
python -m ipykernel install --user--name myenv --display-name "Python (myenv)"
Replace myenv
with the name of your environment. Later on, in your Jupyter Notebook, in the Select Kernel option, you will see this Python (myenv)
option.
Post a Comment for "Command Line Python And Jupyter Notebooks Use Two Different Versions Of Torch"