I am trying to install Python 3.10.6 to upgrade the environments for my applications. Unfortunately it looks like I am unsuccessful. Here's what I tried:
Installed openssl-3.0.5.tar.gz from source in ~/opt/ssl
Configured Python using:
./configure --prefix=$HOME/opt/python-3.10.6 --with-openssl=$HOME/opt/ssl --with-openssl-rpath=auto
Then run make, with the message below:
Following modules built successfully but were removed because they could not be imported:
Could not build the ssl module!
Python requires a OpenSSL 1.1.1 or newer
Custom linker flags may require --with-openssl-rpath=auto
The compiled and installed Python cannot use the ssl module to install packages.
I tried to clean everything and reinstall, both OpenSSL and Python 3.10.6. The installation instructions on both the Python website and in a different post on this forum do not specify any other settings or requirements.
The result is the same.
Can someone suggest a possible cause for this behavior and potential solution?