I installed pytorch using conda command when the virtual env was activated.
But, there are some problems when I import torch modules in Jupyter Notebook.
I checked the sys.path both in the prompt and in Jupyter Notebook.
Well.. in the prompt, the result of sys.path
is
['', '/home/usrname/anaconda3/lib/python36.zip',
'/home/usrname/anaconda3/lib/python3.6',
'/home/usrname/anaconda3/lib/python3.6/lib-dynload',
'/home/usrname/anaconda3/lib/python3.6/site-packages']
and there are no errors when I import torch modules.
But, in the jupyter notebook(executed in chrome), the sys.path
is
['',
'/home/usrname/anaconda3/lib/python36.zip',
'/home/usrname/anaconda3/lib/python3.6',
'/home/usrname/anaconda3/lib/python3.6/lib-dynload',
'/home/usrname/anaconda3/lib/python3.6/site-packages',
'/home/usrname/anaconda3/lib/python3.6/site-packages/IPython/extensions',
'/home/usrname/.ipython']
and I see an error: No module named 'torch'
I can't solve this problem...