import torch报错如下:
Traceback (most recent call last):
File "D:/chl_files/projects/ai_project/sanqi_project/get_yanzhu.py", line 5, in <module>
import torch
File "D:\chl_files\anconda3\envs\pytorch_1.2\lib\site-packages\torch\__init__.py", line 314, in <module>
import torch.hub
File "D:\chl_files\anconda3\envs\pytorch_1.2\lib\site-packages\torch\hub.py", line 17, in <module>
from urllib.request import urlopen
File "D:\chl_files\anconda3\envs\pytorch_1.2\lib\urllib\request.py", line 88, in <module>
import http.client
File "D:\chl_files\anconda3\envs\pytorch_1.2\lib\http\client.py", line 72, in <module>
import email.message
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 674, in exec_module
File "<frozen importlib._bootstrap_external>", line 779, in get_code
File "<frozen importlib._bootstrap_external>", line 487, in _compile_bytecode
ValueError: bad marshal data (invalid reference)
暂时没有找到解决方案