Created
November 23, 2020 06:43
-
-
Save kngvamxx/51414d88df27f220a74a86b65cecc89c to your computer and use it in GitHub Desktop.
Python-3.8.6 Installation Ubuntu 20.04 LTS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt update | |
sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libsqlite3-dev wget libbz2-dev | |
sudo apt-get install build-essential checkinstall | |
sudo apt autoremove | |
sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev zlib1g-dev | |
cd /opt | |
sudo wget https://www.python.org/ftp/python/3.8.6/Python-3.8.6.tgz | |
sudo tar xzf Python-3.8.6.tgz | |
ls -la | |
sudo rm -f Python-3.8.6.tgz | |
cd Python-3.8.6 | |
sudo ./configure --enable-optimizations | |
sudo make altinstall | |
python3.8 -V | |
sudo nano ~/.bashrc | |
# Add into the bottom | |
alias python=python3 | |
# Save & Exit ctrl+s and ctrl+x | |
alias python=python3 | |
sudo apt update | |
python3 --version | |
python --version | |
sudo apt update -y | |
sudo apt upgrade -y | |
sudo apt-get install python3-pip | |
sudo nano ~/.bashrc | |
# Add into the bottom | |
alias pip=pip3 | |
# Save & Exit ctrl+s and ctrl+x | |
alias pip=pip3 | |
sudo ln -s /usr/bin/pip3.8 /usr/bin/pip | |
sudo apt update -y | |
sudo apt upgrade -y | |
sudo apt autoremove | |
pip3 --version | |
pip --version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hello @kngvamxx i followed all the steps but i couldn't use Python-3.8.6