![]() ![]() Better is to change the version of your IDE or specific programs. If you want to install 3.7 in this way you can do it by: sudo add-apt-repository ppa:deadsnakes/ppaĪfter the installation is better to not change the default version for the OS because you can meet many problems and unexpected behavior. If you want to use them in a security-or-otherwise-critical environment (say, on a production server), you do so at your own risk. This is the description of the repo: This PPA contains more recent Python versions packaged for Ubuntu.ĭisclaimer: there's no guarantee of timely updates in case of security problems or other issues. There is a PPA which offers many versions of Python: There are several ways of installing the latest python on Ubuntu: Install by using PPA repository Install latest python 3.7 on Ubuntu 18/Linux Mint 18 For more information about python 3.7 check here: Python 3.7 new features The latest version of python 3 is 3.7 so if you want to installed it you can check next section. The result of this command is: 0 lrwxrwxrwx 1 root root 9 /usr/bin/python -> python2.7Ġ lrwxrwxrwx 1 root root 9 /usr/bin/python2 -> python2.7ģ412 -rwxr-xr-x 1 root root 3492656 /usr/bin/python2.7Ġ lrwxrwxrwx 1 root root 33 /usr/bin/python2.7-config -> x86_64-linux-gnu-python2.7-configĠ lrwxrwxrwx 1 root root 16 /usr/bin/python2-config -> python2.7-configĠ lrwxrwxrwx 1 root root 9 Apr 10 19:43 /usr/bin/python3 -> python3.5Ĥ360 -rwxr-xr-x 2 root root 4464400 /usr/bin/python3.5Ġ lrwxrwxrwx 1 root root 33 /usr/bin/python3.5-config -> x86_64-linux-gnu-python3.5-configĤ360 -rwxr-xr-x 2 root root 4464400 /usr/bin/python3.5mĠ lrwxrwxrwx 1 root root 34 /usr/bin/python3.5m-config -> x86_64-linux-gnu-python3.5m-configĠ lrwxrwxrwx 1 root root 16 /usr/bin/python3-config -> python3.5-configĠ lrwxrwxrwx 1 root root 10 Apr 10 19:43 /usr/bin/python3m -> python3.5mĠ lrwxrwxrwx 1 root root 17 /usr/bin/python3m-config -> python3.5m-configĠ lrwxrwxrwx 1 root root 16 /usr/bin/python-config -> python2.7-configĪnother way to list python installations is by: whereis pythonĪnd the result is: python: /usr/bin/python2.7-config /usr/bin/python3.5 /usr/bin/python3.5m-config /usr/bin/python /usr/bin/python2.7 /usr/bin/python3.5-config /usr/bin/python3.5m /usr/lib/python3.5 /usr/lib/python2.7 /etc/python3.5 /etc/python /etc/python2.7 /usr/local/lib/python3.5 /usr/local/lib/python2.7 /usr/include/python3.5 /usr/include/python2.7 /usr/include/python3.5m /usr/share/python /usr/share/man/man1/python.1.gzĪlternatively you can see the alternatives with: update-alternatives -list pythonĪs you can see from both results we get python 2.7 and 3.5. Then you can list all python installations there by: ls -ls /usr/bin/python* ![]() Check where python is installed: which python If you want to see where and what python versions are installed on your machine you can do it by following commands. Install latest python 3.7 on Ubuntu 18/Linux Mint 18.The following article is tested on Ubuntu 18 and Linux Mint 18. The latest versions gives many advantages like: It is a good idea to list all installed versions on your machine and install the latest ones. The version which is installed could be a few versions behind the latest stable release. Python is installed by default in Ubuntu and Linux Mint. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |