How to Install Python 3.10 on Ubuntu 20.04 LTS & Ubuntu 18.04
Python is a programming language that lets you work more quickly and integrate your systems more effectively.
You can learn to use Python and see almost immediate gains in productivity and lower maintenance costs. [1]
How to Install Python 3.10 from source:
Dependencies:
Make sure your system is updated:
sudo apt update && sudo apt upgrade
Install required dependencies:
sudo apt install wget build-essential libreadline-gplv2-dev libncursesw5-dev \
libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev zlib1g-dev
Download the archive from Python’s official site:
wget https://www.python.org/ftp/python/3.10.0/Python-3.10.0.tgz
Extract the archive:
tar xzf Python-3.10.0.tgz
Move to extracted directory:
cd Python-3.10.0
Compile on your system
./configure --enable-optimizations
Finally install on your system, make sure you are using altinstall command since this might replace your current Python version if you don’t use this command:
make altinstall
If that is successfully installed you can check the Python version:
python3.10 -V
or
python3.10 --version
How to Install Python 3.10 from Repository:
Make sure your system is updated:
sudo apt update && sudo apt upgrade -y
Dependencies:
Install required dependencies:
sudo apt install software-properties-common -y
Add repository:
sudo add-apt-repository ppa:deadsnakes/ppa
CAUSION:
This is a third party repository make sure its authenticated before using.
Reporting Issues ================
Issues can be reported in the master issue tracker at: https://github.com/deadsnakes/issues/issues
Finally install Python 3.10:
sudo apt install python3.10
[2] https://alitech.io [3] https://www.hostingbyalitech.com
Comments
Digital Marketing “Searching for Best and advanced Digital Marketing Courses in Nagpur ? Digisharks is the Best Digital Marketing Training Institute in Nagpur with highest placement record in Nagpur, Learn Digital By Sunil Sir has 10+ years of experience as a Digital Marketing Expert. Master in Digital Marketing Learn 50+ Modules from Basic to Advance, Trained 3000+ Students, 1000+ student placed, Highest Placement Record, Highly Rated Digital Marketing Institute in Nagpur. Our comprehensive course is the Best Digital Marketing Courses in Nagpur with placement and internship support. We offer personalized classroom training with live projects, flexible timings. Our curriculum covers SEO, SEM, SMM, WordPress, Google Adwords, etc”
Hello,
When I do “make altinstall” or “sudo make altinstall” it allways finish with the following error:
running install_scripts
copying build/scripts-3.10/pydoc3.10 -> /usr/local/bin
copying build/scripts-3.10/idle3.10 -> /usr/local/bin
copying build/scripts-3.10/2to3-3.10 -> /usr/local/bin
changing mode of /usr/local/bin/pydoc3.10 to 755
changing mode of /usr/local/bin/idle3.10 to 755
changing mode of /usr/local/bin/2to3-3.10 to 755
rm /usr/local/lib/python3.10/lib-dynload/_sysconfigdata__linux_x86_64-linux-gnu.py
rm -r /usr/local/lib/python3.10/lib-dynload/__pycache__
Creating directory /usr/local/share/man/man1
/usr/bin/install: cannot create directory ‘/usr/local/share/man/man1’: File exists
Makefile:1418: recipe for target ‘altmaninstall’ failed
make: *** [altmaninstall] Error 1
can you help me please?
Try removing this directory…
/usr/local/share/man/man1
rm -rf /usr/local/share/man/man1
nice article