I have compiled python3.6.5 from the source and linked it to my compiled openssl as the following:
export LDFLAGS="-L/usr/local/openssl/lib/ -L/usr/local/openssl/lib64/" export LD_LIBRARY_PATH="/usr/local/openssl/lib/:/usr/local/openssl/lib64/" export CPPFLAGS="-I/usr/local/openssl/include -I/usr/local/openssl/include/openssl" ./configure --prefix=/usr/local/openssl/ make make install
And the openssl is installed as follows:
./config --prefix=/usr/local/openssl --openssldir=/usr/local/openssl shared zlib make make install
/my/path/ in the above instructions is replaced with
/usr/local/openssl/ where openssl is also built in Ubuntu 18 but I compiled it from the source because the system one is missing some features I need.
Now, I want to run my python program using my compile python not the system one.
How to do this? If I write python
myprog.py, it will run the system's python.