Yes having two versions of python causes that problem. On Sat, 28 Mar, 2020, 11:53 pm joseph pareti, <joeparet...@gmail.com> wrote:
> apologies for asking here a presumably off-topic question: > > I have installed pytorch using (miniconda3) the following command: > > *conda install pytorch torchvision cpuonly -c pytorch* > > In the jupyter notebook, the 'import torch' fails: > > *ModuleNotFoundError: No module named 'torch._C'* > > I am not sure if having several python versions on the system could cause > the issue: > > ./Users/joepareti/Miniconda3/envs/myenv/python.exe > ./Users/joepareti/Miniconda3/envs/myenv1/python.exe > ./Users/joepareti/Miniconda3/pkgs/python-3.6.8-h9f7ef89_0/python.exe > ./Users/joepareti/Miniconda3/pkgs/python-3.6.8-h9f7ef89_1/python.exe > ./Users/joepareti/Miniconda3/pkgs/python-3.7.1-h8c8aaf0_6/python.exe > ./Users/joepareti/Miniconda3/python.exe > -- > Regards, > Joseph Pareti - Artificial Intelligence consultant > Joseph Pareti's AI Consulting Services > https://www.joepareti54-ai.com/ > cell +49 1520 1600 209 > cell +39 339 797 0644 > -- > https://mail.python.org/mailman/listinfo/python-list > -- https://mail.python.org/mailman/listinfo/python-list