banner
Feb 6, 2023
169 Views

Cài Python3.8 + pip3.8 cho Ubuntu 22.04

Written by
banner

Nhiều khi các bản mới hơn không tương thích với 1 vài thư viện.

Cài đặt như sau

wget https://www.python.org/ftp/python/3.8.15/Python-3.8.15.tar.xz
tar -xf Python-3.8.15.tar.xz
sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libsqlite3-dev libreadline-dev libffi-dev curl libbz2-dev pkg-config make -y
cd Python3.8.15/
./configure --enable-optimizations --enable-shared
make -j 6
sudo make altinstall
sudo ldconfig /opt/Python3.8.15
wget https://bootstrap.pypa.io/get-pip.py
python3.8 get-pip.py
python3.8 -m pip install --upgrade pip
Article Tags:
·
Article Categories:
config
banner

Leave a Reply

Your email address will not be published. Required fields are marked *