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

Метки: , , ,

Ставим пакеты:

yum install python python-setuptools python2-speedtest-cli -y 

И далее запускаем speedtest

speedtest-cli
Retrieving speedtest.net configuration...
Testing from OVH SAS (176.31.233.62)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by fdcservers.net (Paris) [1.88 km]: 6.068 ms
Testing download speed..............................................
Download: 344.42 Mbit/s
Testing upload speed..................................................
Upload: 328.47 Mbit/s

5 июня, 2018

Posted In: CentOS, Linux, Python

Метки: ,