Install Python 3 on Ubuntu 18.04 or 20.04
- Step1 : Check your version of Python
- Step 2: Install Supporting Software
- Step 3: Download the Latest Version of Python Source Code
- Step 4: Extract Compressed Files
- Step 5: Test System and Optimize Python
- Step 6: Install a Second Instance of Python (recommended)
- Step 7: Verify Python Version
Step1 : Check your version of Python
python --version
Step 2: Install Supporting Software
sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev wget
Step 3: Download the Latest Version of Python Source Code
wget https://www.python.org/ftp/python/3.8.3/Python-3.8.3.tgz
Step 4: Extract Compressed Files
tar -xf Python-3.8.3.tgz
Step 5: Test System and Optimize Python
cd Python-3.8.3
./configure --enable-optimizations
Step 6: Install a Second Instance of Python (recommended)
sudo make altinstall
sudo make install
Step 7: Verify Python Version
python3 --version
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)