whats does assert _sre.MAGIC == MAGIC, SRE module mismatch AssertionError: SRE module mismatch error mean?

余生颓废 提交于 2020-01-14 08:50:35

问题


Hello I´m trying to run a python manage.py runserver command but getting this error message

File "C:\Users\adrie\Anaconda3\lib\sre_compile.py", line 17, in assert _sre.MAGIC == MAGIC, "SRE module mismatch" AssertionError: SRE module mismatch

Does anyone have idea of what´s happening here?

I had anaconda installed previously and was running fine. But then I´ve deinstalled and reinstalled anaconda, and I´m getting this error now.


回答1:


Make sure you do not have any mismatch between Python interpreter version used (like 3.7) and the 're' python module (like 3.6.1).




回答2:


You need reinstall IDLE or anaconda




回答3:


Make sure your installed python version matches exactly the version anaconda uses. If not get another python version. On Windows you can see the anaconda python version in control center -> uninstall programm -> Name of Anaconda. Also make sure there are no older python version installed (that still might have environmental variables that point to them).




回答4:


You can switch your Python version of Anaconda. There should be no need to uninstall Anaconda.

Check for available Python versions:

conda search python

Choose your preferred Python version:

conda install python=3.7.5


来源:https://stackoverflow.com/questions/53600426/whats-does-assert-sre-magic-magic-sre-module-mismatch-assertionerror-sre-m

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!