Custom Compile Python 3.7 for Legacy Server

Опубликовано: 08 Февраль 2025
на канале: veganaiZe
26
0

Have an old server that you would like to update?
Here's how to build Python 3.7.x for it, to help keep it relevant.

https://www.python.org
https://openssl.org
https://jupyter.org

https://docs.python.org/3/using/unix....

You may need to adjust the packages/naming:

sudo apt-get install build-essential \
libncursesw5-dev \
libgdbm-dev \
libc6-dev \
zlib1g-dev \
libsqlite3-dev \
tk-dev \
libssl-dev \
openssl \
libffi-dev \
libnss3 \
libreadline-dev \
libdb-dev \
libbz2-dev \
libexpat1-dev \
liblzma-dev \
uuid-dev \
xz-utils \
wget \

$ cd ~
$ wget https://www.python.org/ftp/python/3.7...
$ tar xvf Python-3.7.4.tgz
$ cd Python-3.7.4

$ ./configure --enable-optimizations --enable-shared --with-system-expat --with-system-ffi --with-ensurepip=yes
$ make -j 8
$ sudo make altinstall

$ python -V
$ python3 -V
$ python3.7 -V

$ python3.7
$ idle3.7
$ pip3.7