1.First, open the official python website:
2.Open the home page under downloads.
3.At the top are the two latest versions. For long-term plans, python3 is recommended, and if you plan to use p3 in the long term, the latest version is used by default. If you want to download a specific version, you can do so.
4.The difference between the versions, generally download the executable file and double-click on the installable one.
5.Two installation packages after the download is complete
6. Double-click to start the installation, do not recommend the "default installation", easy to find, recommended to install to the "customized installation directory", while checking the "Add Python 3.6 to PATH "
7.Click "Customize Installation" to enter the following interface, the options are fully selected
Click "next" next, check the "Install for all users" and "Add Python to environment variables "Both should be checked. Recommendation is, directly in the C disk created under the Python36 installation, so that later to find it can be very easy to find intuitively, if the installation fails to post the problem to the search engine to find the answer.
8.This completes the installation of python3, as shown below, and we'll test it below
Run (win+r) --- cmd ---
Type python -V to see the current python version
Type pip -V to see the current pip version
pip is a python third-party package management tool that removes, installs, and manages local third-party packages.
Enter the command: pip to see the operation
Just want to install python3 and that's the end of it, but the dual version will continue.
Again you need to download python2, remember where to download it and then go find it.
Again, double-click and go to
2-2. Click next to go to the next step.
Check Add python .exe to Path at the bottom, click next, click finsh and you're done.
Now, just now, if you don't close the black box, python3 can come out, and so can pip3, but when you close it, it won't come out, only python2.
Search for "system environment variables" in the search bar, and the following screen will appear.
Click to enter the following interface, find the "Environment Variables" in the lower right corner, double-click the "System Variables" under the Path, "Edit Environment Variables" appears.
Going back to the very beginning of the problem, we need to address the fact that we can't find python3????
Find the installation path C:\Python36
In View, check "File Extension" to view the file extension.
Solution: Copy the python exe and rename it python3.
A: Error correction: why don't you just change it to python3, which results in pip3 -V reporting an error.
B: If I want to type python2 and it comes out 2, python3 and it comes out 3, how do I do that?
Just go through the steps above, then, copy the python executable in the python27 directory and change it to python2, you need to look at the Scripts in the installation directory again to see if there is any difference with the
C: If you want to lose python out of python3 just move all the environment variable values up one position.
to this article on the python interpreter installation tutorial method steps of the article is introduced to this, more related to the installation of python interpreter content please search for my previous articles or continue to browse the following related articles I hope that you will support me more in the future!