Install python3.8

The outline

  • preface
  • Windows installation python3.8
  • Linux installation python3.8
  • MAC installation python3.8
  • Install Python3.8 using Docker
  • conclusion

Video address: www.bilibili.com/video/BV1ZT…

preface

Remember python is portable? Python runs on a variety of operating systems, including Windows, the most widely used, open source Linux, and Apple’s MAC….

This means that a Python program you developed on Windows will run just as well on Linux (unless your program is operating system dependent).

As the saying goes, “give a fish, give a fish to fish”, the truth is understood, so where are the fishing gear? Next we go to “buy” our fishing gear ~

Windows installation python3.8

I’m sure most readers are running Windows, so I’ll focus on how to install python3 on Windows

  1. To get a download link The installation address: www.python.org/downloads/r…

Ps: Download directly from the browser may be a little slow, you can paste the real download address to the thunder place to download again…

  1. After the Python download is complete, open the setup program

Then just wait for it to install

  1. After the installation is complete, press Win + R on the keyboard, then enter CMD and press Enter to open the command prompt window (Win is usually the logo of Windows on the keyboard).

In the black box that pops up, type Python –version. If Python 3.8.3 appears, the installation is successful and you can play happily

Linux installation python3.8

Linux generally comes with Python2, but Python2 went out of maintenance in 2020, so we should embrace Python3

There are two ways to install Python on Linux:

  1. Apt-get install python3.8 apt-get install python3.8
  2. Source code installation (recommended)
CD ~ # go to home directory wget [https://www.python.org/ftp/python/3.8.3/Python-3.8.3.tar.xz] (HTTP: / / https://www.python.org/ftp/python/3.8.3/Python-3.8.3.tar.x Xz # unzip xz to tar tar -xvf python-3.8.3. tar # unzip CD python-3.8.3 # unzip xz to tar -xvf python-3.8.3. tar # unzip CD python-3.8.3 # unzip xz to tar -xvf python-3.8.3 /configure --prefix /usr/local/python3.8 And set the installation directory to/usr/local/python3.8 make && make install # compiler installed ln -s/usr/local/python3.8 / bin/python3.8 / usr/bin/python3.8 Python3.8 --version python3.8

MAC installation python3.8

I’ve never used an Apple MAC… Why? Because poor ah, said many are tears, so also not quite clear, the following is the Internet check some supposedly feasible methods…

Two methods:

  1. Download Python 3.8 from the Python official website, double-click it, and install it
  2. If Homebrew is installed, run the brew install python3 command to install it.

Install Python3.8 using Docker

If you already have Docker installed and want to be lazy, you can use Docker to install Python3.8. Later, if you want to use Python3.8, just run it inside the container

Start the container interactively with "python3.8.3" image, name the container "python38", specify the terminal as /bin/bash, map the home directory to /home/me, Docker run -it --name python38 -v ~:/home/me python:3.8.3 /bin/bash python3 --version # If there are no exceptions, it will display "Python 3.8.3" exit # To re-enter the container after exiting, just =========== docker start -i python38

conclusion

  1. All roads lead to Rome, of course, the installation method is more than the above 4, with the idea of wisdom, can be installed successfully OK pull
  2. Try following the steps above to install the Python parser, and if you run into problems, don’t be afraid to search the web for solutions