download embeddable package (64-bit)
DOS> cd c:/home/end0tknr DOS> wget https://www.python.org/ftp/python/3.10.11/python-3.10.11-embed-amd64.zip DOS> unzip python-3.10.11-embed-amd64.zip DOS> mv python-3.10.11-embed-amd64 python310
install pip
DOS> cd c:/home/end0tknr/python310 DOS> wget https://bootstrap.pypa.io/get-pip.py DOS> python.exe ./get-pip.py
edit python310._pth
単に python-3.10.11-embed-amd64.zip の unzip と、 get-pip.py だけでは、まだ、pipは利用できませんので、 python310._pthにある「#import site」のコメントを解除し、完了です。
DOS> cd c:/home/end0tknr DOS> Scripts/pip.exe Traceback (most recent call last): File "runpy.py", line 196, in _run_module_as_main File "runpy.py", line 86, in _run_code File "C:\Users\end0t\python310\Scripts\pip.exe\__main__.py", line 4, in <module> ModuleNotFoundError: No module named 'pip'
DOS> vi python310/python310._pth old) #import site new) import site
DOS> C:\Users\end0t\python310>Scripts\pip.exe --version pip 23.2.1 from C:\Users\end0t\python310\lib\site-packages\pip (python 3.10)