Uzito писал(а): ↑Ср окт 18, 2023 2:55 pmответьте граждане, зачем эту анаконду ставить?
because it appears to be the only way of getting official binaries of older versions of Python, for example 3.7
The following approach no longer works for Python 3.7, because Python 3.7 was removed from official distribution storages:
Код: Выделить всё
sudo apt install -y software-properties-common
sudo add-apt-repository -y ppa:deadsnakes/ppa
sudo apt-get update
sudo apt install -y python3.7
At the same time, you still can get Python 3.8 , 3.9, 3.10 by
Код: Выделить всё
sudo apt install -y python3.8
sudo apt install -y python3.9
sudo apt install -y python3.10
If you know where to get all official binaries for Python 3.7 the same kind as would have been obtained by 'sudo apt install python3.7', please let me know.
I am aware the it can be compiled from official Python source, but I tried to compile Python 3.74 and it takes a lot of time and produces multiple errors, which are not fatal, but does not guarantee that it will fully work and Python 3.7x is no longer supported for error fixing and compilation help
kyk писал(а): ↑Сб окт 14, 2023 1:11 pm
Код: Выделить всё
!sudo apt install -y build-essential libssl-dev zlib1g-dev libncurses5-dev libncursesw5-dev libreadline-dev libsqlite3-dev libgdbm-dev libdb5.3-dev libbz2-dev libexpat1-dev liblzma-dev tk-dev libffi-dev wget
!wget https://www.python.org/ftp/python/3.7.4/Python-3.7.4.tgz
!sudo ./configure --enable-optimizations --with-ensurepip=install
!sudo make -j $(nproc)
!sudo make altinstall