Hi Kaushal,
Am 2021-11-09 18:30, schrieb Kaushal Shriyan:
#
#cd Python-3.10.0
#*./configure LDFLAGS="-L/usr/lib64/openssl11"*
#make altinstall
# pip3.10 install mysql-connector
WARNING: pip is configured with locations that require TLS/SSL, however
the
ssl module in Python is not available.
compiling Python with a separate OpenSSL version seems a bit more
difficult
then it really should be. I have tried some approaches but ran into
different
errors.
The only workable solution I found was to build OpenSSL 1.1 from
scratch:
# wget https://www.openssl.org/source/openssl-1.1.1l.tar.gz
# tar xzf openssl-1.1.1l.tar.gz
# cd openssl-1.1.1l
# ./config --prefix=/opt/openssl && make && make install
And then have Python explicitly use that:
# cd Python-3.10.0
# ./configure --with-openssl=/opt/openssl
Afterwards, python3.10 loads the ssl module fine and pip works:
# python3.10 -c "import ssl; print (ssl.OPENSSL_VERSION)"
OpenSSL 1.1.1g FIPS 21 Apr 2020
pip3.10 install mysql-connector
Collecting mysql-connector
Downloading mysql-connector-2.2.9.tar.gz (11.9 MB)
|████████████████████████████████| 11.9 MB 21.4 MB/s
Using legacy 'setup.py install' for mysql-connector, since package
'wheel' is not installed.
Installing collected packages: mysql-connector
Running setup.py install for mysql-connector ... done
Successfully installed mysql-connector-2.2.9
Kind regards,
Steve
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos