折腾了好久,找了挺多解决方法的,然后抱着试一试的态度,结果成功了,【我没有安装Anaconda】,
![pycharm显示](https://i-blog.csdnimg.cn/blog_migrate/b7e73fa079904acde781d6126c28a391.png)
在pycharm中导入torch,报错了,下面是报错消息
Microsoft Visual C++ Redistributable is not installed, this may lead to the DLL load failure.
Traceback (most recent call last):
It can be downloaded at https://aka.ms/vs/16/release/vc_redist.x64.exe
File “D:/PYCHARM/python-code/03_pytorch基础/tensor的数据类型.py”, line 1, in
import torch
File “D:\Python\Python37\lib\site-packages\torch_init_.py”, line 134, in
raise err