Python 3.7 won't install in Pycharm 2018.1.4 (windows 10)


I suspect it is trying to use 3.6 to do some of the install, as seen below, maybe there is a bad path somewhere?

C:\PyCharm 2018.1.3\helpers\ pyvenv C:\Users\freemti\venv\test37

Traceback (most recent call last):
File "C:\PyCharm 2018.1.3\helpers\", line 2, in <module>
import traceback
File "C:\Python36\Lib\", line 5, in <module>
import linecache
File "C:\Python36\Lib\", line 11, in <module>
import tokenize
File "C:\Python36\Lib\", line 33, in <module>
import re
File "C:\Python36\Lib\", line 123, in <module>
import sre_compile
File "C:\Python36\Lib\", line 17, in <module>
assert _sre.MAGIC == MAGIC, "SRE module mismatch"
AssertionError: SRE module mismatch

Comment actions Permalink

I also tried installing as non virtual (venv) same error

Comment actions Permalink

I fixed this (with some assistance from Jetbrains) - it was a collision with my existing 3.6 install, I removed PYTHONPATH environmental variable I had set and everything worked fine. 


Please sign in to leave a comment.