Skip to content

Instantly share code, notes, and snippets.

@Ruzzz Ruzzz/
Last active Aug 1, 2018

What would you like to do?
Build Python on Ubuntu
sudo apt update
sudo apt upgrade
sudo apt install -y build-essential libssl-dev zlib1g-dev libncurses5-dev libncursesw5-dev libreadline-dev libsqlite3-dev libgdbm-dev libdb5.3-dev libbz2-dev libexpat1-dev liblzma-dev libffi-dev tcl-dev tk-dev tk openssl
# TODO: The necessary bits to build these optional modules were not found: _uuid
cd cpython-3.7.0
mkdir build1
cd build1
# ./configure --help
# --with-dtrace --enable-profiling --with-pydebug
../configure --with-lto --enable-optimizations --prefix=$HOME/bin/python-3.7.0
make -j4
make install
cd ~/bin/python-3.7.0
python3 -m venv ~/venv_37
source ~/venv_37/bin/activate
cd ~/dev/[PROJECT]
pip install -r req[TAB]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.