So I updated python using these instructions:
sudo apt-get install build-essential checkinstall
sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-devlibsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev
then
cd ~/Downloads
wget https://www.python.org/ftp/python/3.5.0/Python-3.5.0.tgz
tar -xvf Python-3.5.0.tgz
cd Python-3.5.0
then
./configure
sudo make install
python3.5
Python 3.5.0 (default, Oct 3 2015, 03:16:42)
[GCC 4.8.4] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
and it worked but when I closed terminal, and wrote python -v it is still python 2.7 and still getting errors executing code that use v3+ standard libraries
How to make it working as 3.5?
alias python='/usr/bin/python3'
to~/.bashrc
sudo apt-get install python3.5
?python3
.