Table of contents
1. Python environment deployment and simple use
1. Python download and installation
2. Environment variable configuration
3. Check whether the installation is successful
4. Two modes of Python (editing mode & interactive mode)
2. Pycharm library installation and background settings
1. Python library installation
3. How to avoid the Venv folder
1. Python environment deployment and simple use
1. Python download and installation
Python official website download address:
Download Python | Python.org
Choose the system version that suits you to download
After downloading, open the setup file to install it.
I personally like to put the software on the D drive. If your C drive is sufficient, then default to the installation path given by it.
The default path is the one I marked in red. There is no need to modify the options that are checked by default. We can add environment variables ourselves later.
I installed it in the Python folder under the D drive (a folder I created)
So my path here is very simple, it is: D:\Python
2. Environment variable configuration
Find Advanced System Settings in Settings (right-click this computer, click Properties, or search for "Advanced System Settings" in the search)
Click on Environment Variables and find Path in the system variables
Double-click to open, create new, add your own Python installation path, and confirm to save.
3. Check whether the installation is successful
Win+R to open cmd, enter Python -V to view the Python version
Enter Python and press Enter to open the Python interactive interface (>>>)
At this point we have completed the installation and environment deployment of Python
4. Two modes of Python (editing mode & interactive mode)
By the way, let me tell you that Python has two modes:
One is the interactive mode. Enter a command and press Enter to output the execution result, as shown below:
The other is editing mode, write the complete script (.py file) and run it
To open this editing mode, we need to open IDLE and search for Python to find it.
We can also find the location of this file, create a shortcut and drag it to the desktop
Click the shortcut directly to open it later
In fact, this is still interactive mode. We click file->new file to enter the editing mode.
At this point we can write the script. After writing, click run, and the result will be output in the interactive interface.
2. Pycharm library installation and background settings
Both of these things are done in settings.
1. Python library installation
The library is installed in the Python interpreter (interpreter)
Click the plus sign to search for the library you need
Sometimes there will be problems, you can try the command installation
In the terminal, use pip install + library name
2. Pycharm custom background
This is even simpler. In the appearance, background image, you can select the position of the background image.
You can also adjust the position, transparency, etc. of the image here.
3. How to avoid the Venv folder
The reason why this folder appears in the project is because you use the interpreter of the virtual environment
I don't really like seeing that thing anyway, although it doesn't seem to have any impact.
Solution: Modify to system interpreter
This ends the brief introduction to Python and Pycharm
My name is Myon, and I will update you on the typical use and scripting of Pycharm in the field of web security.
Creation is not easy. If you like it, you can like, follow and support it. Thank you everyone!