不能在超级终端上 运行 python

Can't run python on hyper terminal

$ python text.py
Python path configuration:
  PYTHONHOME = (not set)
  PYTHONPATH = (not set)
  program name = 'C:\Program Files\Python38\python.exe'
  isolated = 0
  environment = 1
  user site = 1
  import site = 1
  sys._base_executable = 'C:\Program Files\Python38\python.exe
  sys.base_prefix = 'C:\Program Files\Python38
  sys.base_exec_prefix = 'C:\Program Files\Python38
  sys.executable = 'C:\Program Files\Python38\python.exe
  sys.prefix = 'C:\Program Files\Python38
  sys.exec_prefix = 'C:\Program Files\Python38
  sys.path = [
    'C:\Program Files\Python38\python38.zip',
    'C:\Program Files\Python38\DLLs',
    'C:\Program Files\Python38\lib',
    'C:\Program Files\Python38',
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
LookupError: no codec search functions registered: can't find anything

Current thread 0x0000c158 (most recent call first):
<no Python frame>

我目前正在重新学习 python。目前我正在使用超级终端。出于某种原因,当我执行“python (pythonFile.py)”之类的命令时,它会显示如上所示的错误。我去年做了python,由于学校原因停了下来。我的笔记本电脑中还有 python 个文件。

修复了 运行ning python 文件和使用 pip 的问题。使用 py {yourPythonFile.py} 到 运行 文件而不是 python (https://docs.python.org/3/faq/windows.html#how-do-i-run-a-python-program-under-windows). As for using pip, I could install it but cant import it . Went to change the pythonpath to the folder containing the pip folder () make sure to check the pip documentation too (https://pip.pypa.io/en/stable/installing/) 显示从安装到显示 pip 文件夹位置的所有内容。

{
    "python.pythonPath":         "C:\Users\hal19\AppData\Local\Programs\Python\Python39\Lib\site-packages",
}