Home » Science & Technology » Python Install - compile from source with SSL module, pip TLS/ SSL - Debian, Ubuntu

Python Install - compile from source with SSL module, pip TLS/ SSL - Debian, Ubuntu

Written By datyrlab on Friday, Feb 26, 2021 | 01:12 AM

 
0:00 - here, I'll first demonstrate a pip warning when Python is configured without the SSL module 1. if you are installing Python from scratch then follow this step by step guide ------------------------------ 4:15 - install dependent libraries with sudo apt 11:05 - download the Python source file and unpack to a directory 17:22 - check any Python versions that are currently installed 20:32 - update the file 'setup.dist' located in the directory 'modules' with the path to openssl 28:56 - run configure with SSL enabled to create a Makefile 33:17 - run make to compile Python 39:43 - test your different Python versions and validate the SSL module is working for pip 2. if you are installing Python from scratch and prefer to run an automated script then I'll walk you a script that I've written Note: I've split the script into functions and show how to run each function or all in one pass script: https://github.com/datyrlab/python/tree/master/install-python ------------------------------ 50:37 - run script 3. if you have already compiled Python and you would like to fix the SSL warning then go directly to this chapter and I'll show you how ------------------------------ 20:32 - first make the necessary changes to your setup.dist file shown in previous chapter 1:06:44 - recompile Python with SSL enabled in my first Python install video I'd shown how to switch between Python versions using 'update-alternatives' https://youtu.be/uwoAr9R9POw?t=988 https://twitter.com/datyrlab