install Python 3.6.0
wget https://www.python.org/ftp/python/3.6.0/Python-3.6.0.tgz tar xzvf Python-3.6.0.tgz cd Python-3.6.0 ./configure --prefix=/usr/local --enable-shared make make altinstall
In case of an error like this: “/usr/local/bin/python3.6: error while loading shared libraries: libpython3.6m.so.1.0: cannot open shared object file: No such file or directory“, do this:
vim /etc/ld.so.conf [+] /usr/local/lib ldconfig
install a Python virtual environment
/usr/local/bin/python3.6 -m venv /stuff/grafster/env36 source /stuff/grafster/env36/bin/activate pip install --upgrade pip
upgrade mod_wsgi to run Python 3 applications
cd /stuff/downloads/mod_wsgi git pull ./configure --with-python=/stuff/wholebadgermilk/env36/bin/python make clean make make install