Dendory Network

Logo

Hi, my name is Patrick Lambert and I'm a tech worker, blogger, anime fan, digital artist and video gamer. I live in Montreal, Canada and have over 15 years of experience in technology.

Send me an email dendory@icloud.com

Connect with me on LinkedIn patrick-lambert-530383162

Chat with me on Discord TzrNgbx

Digital art galleries dendory

My YouTube channel elfguy

3D models on ShareCG elfguy


Installing multiple Python versions


Compiling a new version

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/python/python3.6
make
make altinstall

Installing pip

wget https://bootstrap.pypa.io/get-pip.py
/usr/local/python3.6/bin/python3.6 get-pip.py --prefix=/usr/local/python/python3.6/

Installing a module

/usr/local/python/python3.6/bin/pip3 install argcomplete

Compiling Python with an alternate library path

You can edit Modules/Setup.dist with the proper paths, for example the SSL section for a different OpenSSL binary. Then, set the LDFLAGS variable and copy the dist file:

cp Modules/Setup.dist Modules/Setup
export LDFLAGS="-Wl,-rpath,/your/library/path"

You can then run make to compile Python.