Update to Python 3.8 on a Raspberry Pi

Запись создана 30 января, 2021

sudo apt-get install -y build-essential tk-dev libncurses5-dev libncursesw5-dev \
 libreadline6-dev libdb5.3-dev libgdbm-dev libsqlite3-dev libssl-dev libbz2-dev \
 libexpat1-dev liblzma-dev zlib1g-dev libffi-dev
 
wget https://www.python.org/ftp/python/3.8.7/Python-3.8.7.tar.xz
 
tar xf Python-3.8.7.tar.xz
cd Python-3.8.7/
 
./configure --prefix=/usr/local/opt/python-3.8.7 --enable-optimizations
make -j 4
sudo make altinstall
 
cd ..
sudo rm -rf Python-3.8.7 Python-3.8.7.tar.xz
 
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 1
 
update-alternatives --list python
 
sudo update-alternatives --config python
sudo gzip  /usr/bin/lsb_release
sudo python3 get-pip.py
 
python3 -m pip install --upgrade pip
 
pip3 install virtualenv
pip3 install --upgrade setuptools

» Запись из раздела Debian, Linux | Комментировать

Комментарии





Ответить