奇葩问题

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)

暂时没有找到解决方案

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值