An error occurred during running, as follows: "OSError: [WinError 193] %1 is not a valid Win32 application.", looking up, it is a problem with torch, numpy and other packages. Take torch out and see, it is indeed its problem: (check the torch version number to see if there is any problem):
import torch
print(torch.__vision__)
At this time, the error described in the title occurs. The probability is that the original 32-bit python was uninstalled yesterday, and the 64-bit was reinstalled, and the library inside is still 32-bit. An error occurred when the 64-bit program read the 32-bit dll file, so this problem occurred.
Solution: Uninstall and redownload
Reinstall using pip
After the installation is complete, check the version number again:
Error correction completed