The official support for python2 ended a few months ago , but I need it to run one of my programs and also it has been removed from the ubuntu 20.04 repository.So I wanted to compile and install python2 myself.But in the closing stages of the make all(in fact in setup.py build) , it prints the following error :
Python build finished, but the necessary bits to build these modules were not found:
_bsddb _sqlite3 _ssl
_tkinter bsddb185 bz2
dbm dl gdbm
imageop readline sunaudiodev
To find the necessary bits, look in setup.py in detect_modules() for the module's name.
I don't care about some modules like readline or _tkinter but I need _ssl.It's not possible to install that via pip.
I installed libssl-dev from the repository but then the following error occurred beside those after re-building:
Failed to build these modules:
_hashlib _ssl
Any help is appreciated.
Thanks.