https://linuxize.com/post/how-to-install-anaconda-on-ubuntu-18-04/
https://stackoverflow.com/questions/54843067/no-module-named-torch
# Try to install PyTorch using pip:
# First create a Conda environment using:
conda create -n env_pytorch python=3.6
#Activate the environment using:
conda activate env_pytorch
#Now install PyTorch using pip:
pip install torchvision
#Note: This will install both torch and torchvision.
#Now go to Python shell and import using the command:
python3
import torch
import torchvision
No comments:
Post a Comment