Python Forum

Full Version: Python 36-32 problem encoding module not found
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I need somehelpwith Python 36-32 and 38-32
I have been using sublime text 3 asmy ide for about 1 year now and everything was fine -I tried to change to Pycharm 2020 - I was going to use sublime 3 as my IDE for python36-32 and the Pycharm2020 forthe IDE forPython38-32. Unfortunatly snt wrong as nomatter which IDE I use I get the following
Python -v info


Microsoft Windows [Version 10.0.18363.720]
© 2019 Microsoft Corporation. All rights reserved.

C:\Users\mkgrt>python
Fatal Python error: Py_Initialize: unable to load the file system codec
ModuleNotFoundError: No module named 'encodings'

Current thread 0x00001688 (most recent call first):

C:\Users\mkgrt>python -v
import _frozen_importlib # frozen
import _imp # builtin
import sys # builtin
import '_warnings' # <class '_frozen_importlib.BuiltinImporter'>
import '_thread' # <class '_frozen_importlib.BuiltinImporter'>
import '_weakref' # <class '_frozen_importlib.BuiltinImporter'>
import '_frozen_importlib_external' # <class '_frozen_importlib.FrozenImporter'>
import '_io' # <class '_frozen_importlib.BuiltinImporter'>
import 'marshal' # <class '_frozen_importlib.BuiltinImporter'>
import 'nt' # <class '_frozen_importlib.BuiltinImporter'>
import _thread # previously loaded ('_thread')
import '_thread' # <class '_frozen_importlib.BuiltinImporter'>
import _weakref # previously loaded ('_weakref')
import '_weakref' # <class '_frozen_importlib.BuiltinImporter'>
import 'winreg' # <class '_frozen_importlib.BuiltinImporter'>
# installing zipimport hook
import 'zipimport' # <class '_frozen_importlib.BuiltinImporter'>
# installed zipimport hook
Fatal Python error: Py_Initialize: unable to load the file system codec
Traceback (most recent call last):
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'encodings'

Checking Pytghon36-32

C:\Users\mkgrt\AppData\Local\Programs\Python\Python36-32\Lib\encodings
the encodings in in the Lib -I have tried the following
uninstalled Python36-32 / Python38-32 / Pycharmcreated the PYTHONPATH and PYTHONHOME and nothing works - Any Help would be appreciated thank you in advance