Even if explicitly stated that the embeddable version of Python does not
support Pip, it is possible with care. You need to:
-
Download and unzip Python embeddable zip file.
-
In the file
python39._pth
or similar, uncomment theimport
command.
Result should look similar to this:python39.zip . import site
-
Download get-pip.py to the Python install folder
-
Run
get-pip.py
. this installs Pip into theScripts
directory:python get-pip.py
-
Run Pip directly from command line as Pip is a executable program (this
example is to install Pandas):.\Scripts\pip install pandas
You could find more information about this in the Pip issue 4207