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

前端 未结 5 938
温柔的废话
温柔的废话 2021-01-18 08:39

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

File \"C:\\Users\\adrie\\Anaconda3\\lib\\sre_

相关标签:
5条回答
  • 2021-01-18 08:44

    You need reinstall IDLE or anaconda

    0 讨论(0)
  • 2021-01-18 08:49

    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).

    0 讨论(0)
  • 2021-01-18 08:57

    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).

    0 讨论(0)
  • 2021-01-18 09:00

    My PYTHONHOME and PYTHONPATH environment variables were pointing to the wrong version. By fixing this import sre_compile was fixed.

    0 讨论(0)
  • 2021-01-18 09:06

    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
    
    0 讨论(0)
提交回复
热议问题