The method of using !pip in Jupyter has been verified twice by myself and other classmates without any issues; at least this way it can be installed and used.
- Install jupyter with
pipin a fresh virtual environment - Use
!pipto install torch inside Jupyter
If you want to know more about why such issues occur and how to solve them, you can search for the keywords related to this problem.
https://blog.csdn.net/denglavender/article/details/111707097