You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
to install pytorch for the system
It automatically install python3.6.7 for pytorch
So I can just only use python in the terminal to import torch
(pytorch12) isaac@AIServer01:~$ python
Python 3.6.7 | packaged by conda-forge | (default, Jul 2 2019, 02:18:42)
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
>>>
but It cannot work for ipython and jupyter kernel
(pytorch12) isaac@AIServer01:~$ ipython
Python 3.6.5 |Anaconda, Inc.| (default, Apr 29 2018, 16:14:56)
Type 'copyright', 'credits' or 'license' for more information
IPython 6.4.0 -- An enhanced Interactive Python. Type '?' for help.
In [1]: import torch
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-1-eb42ca6e4af3> in <module>()
----> 1 import torch
ModuleNotFoundError: No module named 'torch'
Because the ipython and jupyter still connect to python3.6.5
How can switch to python3.6.7 to use pytorch by jupyter ??
Thank you .
The text was updated successfully, but these errors were encountered:
My guess is ipython is not being invoked from your environment, but from somewhere else. Try installing jupyterlab in your environment: conda install jupyterlab.
The basic anaconda install python3.6.5 for the system , And I use the jupyterLab 0.32.1 to get remote python kernel under ubuntu system.
But when I use the code :
to install pytorch for the system
It automatically install python3.6.7 for pytorch
So I can just only use python in the terminal to import torch
but It cannot work for ipython and jupyter kernel
Because the ipython and jupyter still connect to python3.6.5
How can switch to python3.6.7 to use pytorch by jupyter ??
Thank you .
The text was updated successfully, but these errors were encountered: