QUOTE(k town shit @ Apr 7 2020, 12:33 PM)
Hi all,
I tried:
CODE
sudo apt-get update python
Somehow, it returns:
Any idea?
PS: The Python is currently in used by the ERP. But this is a testing environment only in my machine. It doesn't really matter even if it's crash.
Not sure if you've already found a way to get Python 3.7 installed, but if you're still trying to figure it out, try this:
CODE
$ sudo apt install python3.7
In 18.04 (which I use right now), there's 4 versions of Python3:
CODE
user@box:~$ apt-cache policy python3 python3.6 python3.7 python3.8
python3:
Installed: 3.6.7-1~18.04
Candidate: 3.6.7-1~18.04
Version table:
*** 3.6.7-1~18.04 500
500 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
100 /var/lib/dpkg/status
3.6.5-3 500
500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages
python3.6:
Installed: 3.6.9-1~18.04ubuntu1
Candidate: 3.6.9-1~18.04ubuntu1
Version table:
*** 3.6.9-1~18.04ubuntu1 500
500 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages
100 /var/lib/dpkg/status
3.6.5-3 500
500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages
python3.7:
Installed: (none)
Candidate: 3.7.5-2~18.04
Version table:
3.7.5-2~18.04 500
500 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages
3.7.3-2~18.04.1 500
500 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages
3.7.0~b3-1 500
500 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
python3.8:
Installed: (none)
Candidate: 3.8.0-3~18.04
Version table:
3.8.0-3~18.04 500
500 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages
Both Python2 and Python3 can be installed in the same system as their binary name is different.
CODE
user@box:~$ python -V; python2 -V; python3 -V
Python 2.7.17
Python 2.7.17
Python 3.6.9
user@box:~$ ls -l /usr/bin/python; ls -l /usr/bin/python2; ls -l /usr/bin/python3
lrwxrwxrwx 1 root root 9 Apr 16 2018 /usr/bin/python -> python2.7
lrwxrwxrwx 1 root root 9 Apr 16 2018 /usr/bin/python2 -> python2.7
lrwxrwxrwx 1 root root 9 Oct 25 2018 /usr/bin/python3 -> python3.6
user@box:~$