while i install any of python’s library in my windows laptop, following error occurs:
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Python path configuration:
PYTHONHOME = (not set)
PYTHONPATH = (not set)
program name = 'C:msys64mingw64binpython3.exe'
isolated = 0
environment = 1
user site = 1
import site = 1
sys._base_executable = 'C:\msys64\mingw64\bin\python3.exe'
sys.base_prefix = 'D:\a\msys64\mingw64'
sys.base_exec_prefix = 'D:\a\msys64\mingw64'
sys.platlibdir = 'lib'
sys.executable = 'C:\msys64\mingw64\bin\python3.exe'
sys.prefix = 'D:\a\msys64\mingw64'
sys.exec_prefix = 'D:\a\msys64\mingw64'
sys.path = [
'D:\a\msys64\mingw64\lib\python39.zip',
'D:\a\msys64\mingw64\lib\python3.9',
'D:\a\msys64\mingw64\lib\lib-dynload',
'',
]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'
Current thread 0x00000894 (most recent call first):
<no Python frame>
I tried reinstalling new version of python i.e., 3.12.3 but after installing and adding path. When i check version it shows older version.
how can i fix my problem.
New contributor
BIBHASH is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.