fewit.ru :: Заметки недоайтишника

Ещё один криворукий админ

wget --no-check-certificate https://www.openssl.org/source/openssl-1.1.1m.tar.gz
tar xvzf openssl-1.1.1m.tar.gz
cd openssl-1.1.1m/
mkdir /opt/openssl
./config --prefix=/opt/openssl --openssldir=/opt/openssl shared zlib
make
make install
tar xvzf Python-3.10.2.tgz
cd Python-3.10.2/
nano Modules/Setup

_socket socketmodule.c

# Socket module helper for SSL support; you must comment out the other
# socket line above, and edit the OPENSSL variable:
OPENSSL=/opt/openssl
 _ssl _ssl.c \
     -I$(OPENSSL)/include -L$(OPENSSL)/lib \
     -lssl -lcrypto
_hashlib _hashopenssl.c \
     -I$(OPENSSL)/include -L$(OPENSSL)/lib \
     -lcrypto
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/opt/openssl/lib
./configure --enable-optimizations --with-openssl=/opt/openssl
make altinstall
/usr/local/bin/pip3.10 install --proxy "http://proxy:8080" paramiko

python3 spkg: ModuleNotFoundError: No module named ‘binascii’
build/make/Makefile.in: Uninstall setuptools before reinstalling python3

26 января, 2022

Posted In: CentOS, Python

Метки: , , ,