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/