Python3 Development environment setup tutorial
u
Link to the original version of “Reeplayway”
“
Let’s have a mediocre tutorial
(As an introduction to Scrapy series)
Python Environment Installation
Download the Python installation package
Enter thePython’s official websiteUnder my Downloads TAB, clickWindow
The download list page is displayed
Here we see two broad categories:
- Stable Releases: Tested and iterated with fewer bugs. Can be used for work and study
- Pre-releases: Is being tested and is prone to anomalies. But it contains new language features/functions/syntax, suitable for learning/researching new language features
We’re mostly learning here, so we’re going to go with Stable Releases
Stable versions fall into two categories:
- Python 2.x: Python 2 was released in 2000 and the stable version is Python 2.7. But in March 2018, the language’s authors announced on the mailing list that Python 2.7 would end support on January 1, 2020. They even made a website to count down the days
- Python 3.x: Python 3 was released on December 3, 2008 and is not fully compatible with Python 2. The latest stable release is Python 3.7.7, which was released in March 2020
This course will use Python 3.7.7, but there are many options below Python 3.7.7
The executable installer is the same as the Python 3.7.7-Windows x86-64 executable installer.
Install Python3
Create the Py3 environment directory folder: D:\Dev\env\python3.7, open the download directory and double-click python-3.7.7-amd64.exe to go to the installation configuration interface
- Click Add Python 3.7 to PATH. Python3.7 path to the system configuration path for easy execution in any directory.
- chooseCustomize installation. The system can be installed by default, but it is not conducive to future management. So choose custom installation
Do you need to install Python documentation, PIP extension package manager, IDLE command line tools… It’s the day-to-day development that we need to chooseThe Next step
The image below presets here,
- Select Install for all Users and set Python3.7 to the global environment.
- Configure the Customize Install Location custom path, which is configured as the Py3 environment directory folder above: D:\Dev\env\python3.7
thenThe Next stepThe program is installed according to your configuration. We will wait for a moment.
The installation succeeded message is displayed.
To verify the installation, run the CMD command on the clipython
, the following image appears
Don’t panic if you get an error — Python is the language of the moment, and everyone else has. Online search can be solved, about “search skills can click to urge some degree from good”, here I will not be too tired to describe.
Here are some common tools:With questions in mind, reading more documents and summarizing more helps deepen the understanding of the language
Python3.7 support is already in place. Next we need to install PyCharm, our common Python development tool
PyCharm, leave you
PyCharm development tool installation
Download PyCharm
Click to enterPyCharm website, click on theDOWNLOAD
PyCharm comes in three systems and two versions. I don’t need to say more about the system. The key is the version:
- Community is the Community edition, free and open source. We’ve had enough development work.
- Professional is Free trial(30 days Free trial)… Such as support.
Here we downloadCommunityCommunity edition, clickDowload. Wait for the download to complete.
Install PyCharm
Once the download is complete, go to the download directory and find PyCharm and double-click to run it
Click on theNext>And in theDestination FolderSelect the installation directory: D: Dev\ Tool \PyCharm2020 (custom). Click next
Select your own configuration based on the following figure, then Next and then Install. We’ll wait a moment…
Once installed, go back to the desktop and find the PyCharm icon and double-click to run
Run PyCharm
Here’s the JetBrains Privacy policy, and we checked itI have read and agreed with the termsAnd then Continue
The following figure asks whether to share personal usage data, abnormal situation. I’m going to say “Don’t Send.”
Select the PyCharm UI theme
Do you want to install some additional plug-ins, which you need to install here? Start using PyCharm
PyCharm is now installed
Create project iMOOC and project virtual environment
Double-click on the desktop to run PyCharm and clickCreate a New Project
Configure Location (project path) to D: Dev workplace imooc (custom). One thing to note here is Project Interpreter (the Python runtime environment for your Project). If you are familiar with this, you can directly select New Environment Using. PyCharm will help you generate a virtual execution environment for your Project.
But since the course itself is going to teach you how to configure it manually, rightProject virtual execution environmentSo let’s choose firstExisting interpreterSelect the global Python execution environment and clickCreateCreate a project
Husbands, the tutorial is over for today
I’ll see you next time
Please feel free to like and discuss the article
Small benefits:
Follow “Ruimen Playway” and reply “Resources” to receive more learning resources on the front and back ends