简体   繁体   中英

Upgrade Python version in Linux Mint

I am following this guide: http://www.experts-exchange.com/articles/18641/Upgrade-Python-2-7-6-to-Python-2-7-10-on-Linux-Mint-OS.html

It says to do

make install

When I do that it says:

在此处输入图片说明

If I do: su then enter passowrd and then make install same error appears.

How can I solve this?

You are probably following wrong steps. Before installing the Python from the source you should install required packages and configure source accordingly. So I suggest you to follow the steps:

Install Required Packages

$ sudo apt-get install build-essential checkinstall
$ sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev

Download and extract Python 2.7.10

$ cd /usr/src
$ wget https://www.python.org/ftp/python/2.7.10/Python-2.7.10.tgz
$ tar xzf Python-2.7.10.tgz

Compile Python Source

$ cd Python-2.7.10
$ sudo ./configure
$ sudo make altinstall

Check the Python Version

$ python2.7 -V

Source: http://tecadmin.net/install-python-2-7-on-ubuntu-and-linuxmint/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM