#πŸ”’ I dont get the error

30 messages Β· Page 1 of 1 (latest)

odd ravine
#

so I've tried both vs code and sublime text for python like a normal message like print("hello")

but it shows this
Could not find platform independent libraries <prefix>
Python path configuration:
PYTHONHOME = (not set)
PYTHONPATH = (not set)
program name = 'C:\Users\sushi\AppData\Local\Programs\Python\Python311\python.exe'
isolated = 0
environment = 1
user site = 1
safe_path = 0
import site = 1
is in build tree = 0
stdlib dir = 'C:\Users\sushi\OneDrive\Desktop\Projects\pong\Lib'
sys._base_executable = 'C:\Users\sushi\AppData\Local\Programs\Python\Python311\python.exe'
sys.base_prefix = 'C:\Users\sushi\OneDrive\Desktop\Projects\pong'
sys.base_exec_prefix = 'C:\Users\sushi\OneDrive\Desktop\Projects\pong'
sys.platlibdir = 'DLLs'
sys.executable = 'C:\Users\sushi\AppData\Local\Programs\Python\Python311\python.exe'
sys.prefix = 'C:\Users\sushi\OneDrive\Desktop\Projects\pong'
sys.exec_prefix = 'C:\Users\sushi\OneDrive\Desktop\Projects\pong'
sys.path = [
'C:\Users\sushi\AppData\Local\Programs\Python\Python311\python311.zip',
'C:\Users\sushi\OneDrive\Desktop\Projects\pong',
'C:\Users\sushi\OneDrive\Desktop\Projects\pong\Lib',
'C:\Users\sushi\AppData\Local\Programs\Python\Python311',
]
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 0x000048d8 (most recent call first):
<no Python frame>
[Finished in 114ms]

merry archBOT
#

@odd ravine

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

ebon torrent
odd ravine
#

from th epython websitr

narrow badger
#

From a quick search, it looks like that errors caused by attempting to use a Python installation that was later deleted.

odd ravine
#

oh what?

narrow badger
#

Potentially. Actually, there's a few causes.

odd ravine
#

ok

odd ravine
#

so i just delete the python folder which my download is in?

#

???

#

@narrow badger

#

@ebon torrent

narrow badger
#

I'd check your PATH environment variable to ensure that it's pointing to the correct location.

ebon torrent
#

I would try and uninstall python properly from Add/Remove programs

#

don't just randomly delete files

odd ravine
#

this is the pyhton i downloaded

#

whats PATH enviorment

#

3.13

narrow badger
#

The error mentions 3.11, so something wonky happened. Fashoomp is probably right that just uninstalling it and reinstalling would be the easiest fix. When doing a reinstall, there's an Advanced option that says something like "Add to PATH variable", which you should select

odd ravine
#

ll

#

kk

#

kk im doing

#

i also downloaded 3.13

#

bc i didnt know if i delete

#

should i delete that too?

ebon torrent
merry archBOT
#
Python help channel closed for inactivity

This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.