I had to create additional environment for ‘cv2’, after that I could easily install pytorch.
Unfortunately, when it comes to install torchvision. I got this Error:
Collecting torchvision
Downloading torchvision-0.5.0-cp37-cp37m-win_amd64.whl (1.2 MB)
Requirement already satisfied: pillow>=4.1.1 in c:\users\fachri\anaconda3\envs\opencv\lib\site-packages (from torchvision) (7.0.0)
ERROR: Could not find a version that satisfies the requirement torch==1.4.0 (from torchvision) (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2)
ERROR: No matching distribution found for torch==1.4.0 (from torchvision)