Install Python3 in linux system

1. Brief introduction before the blog: almost all Linux systems will install python2 by default, but most of them do not install python3

Second, install python3 steps

1. Open the terminal and check the installed version, the command is as follows:

$ python --version
$ python3 --version

2. Install python3, the command is as follows:

$ sudo add-apt-repository ppa:fkrull/deadsnakes
$ sudo apt-get update
$ sudo apt-get install python3.5

3. Open a python3 terminal and enter the code:

>>> print("Hello Python world!")

 

Guess you like

Origin blog.csdn.net/joyksk/article/details/112002151