cd /tmp
git clone https://github.com/python/cpython.git
cd cpython
git checkout 3.7
./configure --prefix=$HOME/.local --enable-optimizations
make
make install
--prefix=$HOME/.local/bin
а --prefix=$HOME/.local
.local
├── bin
│ ├── 2to3 -> 2to3-3.7
│ ├── 2to3-3.7
│ ├── easy_install-3.7
│ ├── idle3 -> idle3.7
│ ├── idle3.7
│ ├── pip3
│ ├── pip3.7
│ ├── pydoc3 -> pydoc3.7
│ ├── pydoc3.7
│ ├── python3 -> python3.7
│ ├── python3.7
│ ├── python3.7-config -> python3.7m-config
│ ├── python3.7m
│ ├── python3.7m-config
│ ├── python3-config -> python3.7-config
│ ├── pyvenv -> pyvenv-3.7
│ └── pyvenv-3.7
├── include
│ └── python3.7m
├── lib
│ ├── libpython3.7m.a
│ ├── pkgconfig
│ └── python3.7
│ └── man