当前位置: 首页 > 工具软件 > AmanithVG SRE > 使用案例 >

AssertionError: SRE module mismatch

谷梁裕
2023-12-01

 

AssertionError: SRE module mismatch

 

Traceback (most recent call last):
  File "D:/project/pose/simple-HRNet/models/hrnet.py", line 1, in <module>
    import torch
  File "D:\ProgramData\Miniconda3\lib\site-packages\torch\__init__.py", line 15, in <module>
    import platform
  File "D:\ProgramData\Miniconda3\lib\platform.py", line 116, in <module>
    import sys, os, re, subprocess
  File "D:\ProgramData\Miniconda3\lib\re.py", line 123, in <module>
    import sre_compile
  File "D:\ProgramData\Miniconda3\lib\sre_compile.py", line 17, in <module>
    assert _sre.MAGIC == MAGIC, "SRE module mismatch"
AssertionError: SRE module mismatch

这个问题是由,环境是32位python引起的

解决;

把环境换成64的python环境即可

 类似资料:

相关阅读

相关文章

相关问答