<

Go Premium for a chance to win a PS4. Enter to Win

x

Upgrade Python 2.7.6 to Python-2.7.10 on Linux Mint OS

Published on
9,396 Points
6,296 Views
1 Endorsement
Last Modified:
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once you download and install Linux Mint 17.2, Python software is installed by default. But the latest releases from Python are Python 2.7.10 and Python 3.4.3. I am using a 32 bit operating system as my host is 32 bit but you can still go ahead with 64 bit version which is preferred.

Log into the Mint operating system, and open terminal. Type "python" and hit enter or you can type "python --version" to check the existing version.
swadhin.ray-000036.pngTo download the latest version of Python, open https://www.python.org/downloads/ and click on "Download Python-2.7.10" as shown in below image.
swadhin.ray-000037.pngOpen the folder where the file is downloaded. In my system it's defaulted to "Downloads" folder.
swadhin.ray-000038.png
swadhin.ray-000039.pngIf you open the tar file from the archive manager you can see the files that were downloaded.
swadhin.ray-000040.pngNow extract all the files under the same folder or you can choose a specific directory. Click on Extract button as shown below.
swadhin.ray-000041.pngswadhin.ray-000042.pngWait till the file get extracted.
swadhin.ray-000043.pngNow from the above image we can we can see that file is successfully extracted.
swadhin.ray-000044.pngNow open terminal and locate the extracted installation files.
sloba@sloba-VirtualBox ~ $ ls
Desktop  Documents  Downloads  Music  Pictures  Public  Templates  Videos
sloba@sloba-VirtualBox ~ $ cd Downloads/
sloba@sloba-VirtualBox ~/Downloads $ ls
Python-2.7.10  Python-2.7.10.tar.xz
sloba@sloba-VirtualBox ~/Downloads $ cd Python-2.7.10/
sloba@sloba-VirtualBox ~/Downloads/Python-2.7.10 $ ls
aclocal.m4     Demo            Mac              PC              README
build          Doc             Makefile         PCbuild         RISCOS
config.guess   Grammar         Makefile.pre     pybuilddir.txt  setup.py
config.log     Include         Makefile.pre.in  pyconfig.h      Tools
config.status  install-sh      Misc             pyconfig.h.in
config.sub     Lib             Modules          python
configure      libpython2.7.a  Objects          Python
configure.ac   LICENSE         Parser           python-gdb.py
sloba@sloba-VirtualBox ~/Downloads/Python-2.7.10 $ 

Open in new window


Now execute "./configure" on the same path to configure. Wait until it is completed. The execution should be completed without any errors.

swadhin.ray-000046.pngswadhin.ray-000047.pngswadhin.ray-000048.pngOnce the script is executed then type "make install" to proceed further.

swadhin.ray-000049.pngIf you get any errors then use the root user to execute as like above.

swadhin.ray-000050.pngThis will take some time to complete. Wait till this get completed.
swadhin.ray-000051.pngNow the installation is completed. Now let's check the Python verison to see if the latest version is installed or not by typing "python" or "python --version" as shown in below image.
swadhin.ray-000053.pngPython-2.7.10 is successfully installed on Linux Mint OS and ready to use.
swadhin.ray-000054.png
1
Comment
Author:Swadhin Ray
2 Comments
 

Expert Comment

by:MeganDS
When I executed "./configure", you said it shouldn't have any errors, but mine did. When I did that, I got this output:

checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for --enable-universalsdk... no
checking for --with-universal-archs... 32-bit
checking MACHDEP... linux2
checking EXTRAPLATDIR... 
checking for --without-gcc... no
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/home/sara/Downloads/Python-2.7.10':
configure: error: C compiler cannot create executables
See `config.log' for more details

Open in new window


What can I do to fix this?
0
 
LVL 16

Author Comment

by:Swadhin Ray
what is your OS version seems you are installing 64/bit on 32 .
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Join & Write a Comment

Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month