AssertionError: SRE module mismatch
Traceback (most recent call last):
File "D:/project/pose/simple-HRNet/models/hrnet.py", line 1, in
import torch
File "D:\ProgramData\Miniconda3\lib\site-packages\torch\__init__.py", line 15, in
import platform
File "D:\ProgramData\Miniconda3\lib\platform.py", line 116, in
import sys, os, re, subprocess
File "D:\ProgramData\Miniconda3\lib\re.py", line 123, in
import sre_compile
File "D:\ProgramData\Miniconda3\lib\sre_compile.py", line 17, in
assert _sre.MAGIC == MAGIC, "SRE module mismatch"
AssertionError: SRE module mismatch
这个问题是由,环境是32位python引起的
解决;
把环境换成64的python环境即可