Created
April 18, 2025 05:46
-
-
Save ugovaretto/6efa47cf6ff31827eab8e8987a094e34 to your computer and use it in GitHub Desktop.
Build python from source and install in home directory on Linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./configure --prefix=~/.local -enable-optimizations --with-lto=full --prefix=$PWD/run --with-ensurepip --libdir=$PWD/run/lib | |
ln -sf ~/.local/lib64/python3.13/lib-dynload ~/.local/lib/python3.13/lib-dynload | |
# without the above line you'll get errors saying that the module _posixsubprocess cannot be found |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment