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环境即可