I
I
Igor Frol2021-10-18 12:11:59
Python
Igor Frol, 2021-10-18 12:11:59

How to make it so that after installing Python on a PC it is available via CMD?

Installed Python on a PC in the root of windows 10. I try via cmd. I don't understand what it is in the end. How to make it work via cmd?

C:\>python
Python path configuration:
  PYTHONHOME = 'C:\Program Files (x86)\Botsapp\python_27'
  PYTHONPATH = 'C:\Program Files (x86)\Botsapp\py;C:\Program Files (x86)\Botsapp\instagram_private_api;C:\Program Files (x86)\Botsapp\python_27\Lib'
  program name = 'python'
  isolated = 0
  environment = 1
  user site = 1
  import site = 1
  sys._base_executable = 'C:\\Python 3100\\python.exe'
  sys.base_prefix = 'C:\\Program Files (x86)\\Botsapp\\python_27'
  sys.base_exec_prefix = 'C:\\Program Files (x86)\\Botsapp\\python_27'
  sys.platlibdir = 'lib'
  sys.executable = 'C:\\Python 3100\\python.exe'
  sys.prefix = 'C:\\Program Files (x86)\\Botsapp\\python_27'
  sys.exec_prefix = 'C:\\Program Files (x86)\\Botsapp\\python_27'
  sys.path = [
    'C:\\Program Files (x86)\\Botsapp\\py',
    'C:\\Program Files (x86)\\Botsapp\\instagram_private_api',
    'C:\\Program Files (x86)\\Botsapp\\python_27\\Lib',
    'C:\\Python 3100\\python310.zip',
    'C:\\Program Files (x86)\\Botsapp\\python_27\\DLLs',
    'C:\\Program Files (x86)\\Botsapp\\python_27\\lib',
    'C:\\Python 3100',
  ]
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 0x00004188 (most recent call first):
  <no Python frame>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alan Gibizov, 2021-10-18
@Fuzzotron

I recommend:
1. Choose python version 3.7 or 3.8; 3.10 remove and do not touch yet.
2. When installing, specify what to enter python in the path; or do it manually.
3. call python on the command line exclusively with the python3 command

U
UberPool, 2021-10-18
@UberPool

Add to PATH

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question