Python-a01-How to install embedded python on windows

install an embedded python on Windows

  1. download zip file from https://www.python.org/downloads/windows/, unzip it and add it to the path environment variable

  2. download get-pip.py from https://bootstrap.pypa.io/get-pip.py

  3. run command

    1
    python get-pip.py
  4. add pip path to the path in environment variable

  5. when running pip -V there is error
    ModuleNotFoundError: No module named ‘pip’

    In order to fix this, we have to do as below:
    open python38._pth and add the following paths to it

    1
    2
    3
    C:\Dev\softwares\python-3.8.0-embed-amd64\Scripts
    C:\Dev\softwares\python-3.8.0-embed-amd64\Lib
    C:\Dev\softwares\python-3.8.0-embed-amd64\Lib\site-packages