Start
coda installation
Win 10 installs Miniconda 4.8.3 and configures the mirror to see this transfer
Pytorch chooses to see this transfer.
Here I demonstrate the use of win 10 in VirtualBox, and there is no separate display for him in the configuration. . Therefore, there is no cuda, so just copy the following statement.
conda install pytorch torchvision cpuonly -c pytorch
I allowed this statement twice. . . . So the above display has been installed, but the embarrassment is coming
coda test failed
This? ? ? I have installed it with coda, and tried to restart it. . .
pip install
pip install torch==1.6.0+cpu torchvision==0.7.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
Test error
What should I do if there is no display in VS code? I finally found the reason after running in conda Prompt. A certain ese of C++ was not downloaded. Follow the prompts to download from the corresponding website
succeed
Go to the given website to download and install, test ok
from __future__ import print_function
import torch
x = torch.empty(5, 3)
print(x)
operation result
New problem
When I run in vs code
So install numpy and mat according to online posts, the
result is still the same error
reference
- Pytorch 1.6.0 installation process record Pip+Cuda on Windows 10-One pass operation is fierce
- Miniconda 4.8.3 on Windows 10 quickly install and configure the mirror and use Jupyter and usage records-lightweight Anaconda
- Pytorch START LOCALLY
- Pytorch installation steps in Windows 10 environment and solutions to "[WinError 126] Cannot find the specified module" after installation