python - Can't import pytorch - Ask Ubuntu
askubuntu.com › questions › 922105Jun 05, 2017 · It seems the module pytorch is not installed. First make sure your using anaconda's python and not the system one. To install pytorch via conda do. conda install pytorch torchvision -c soumith. or via pip. For python3. pip install http://download.pytorch.org/whl/cu75/torch-0.1.12.post2-cp35-cp35m-linux_x86_64.whl pip install torchvision For python2