Start learning python today. First, install the environment.
1. Download python2. The program that comes out, will not be compatible with 32-bit systems after is packaged into an EXE program)
2. After downloading and installing, open the installation package 2.1 Default installation, the default installation is under the C drive of the computer 2.2 Custom installation can be customized to install on any drive letter of the computer3Environment variables 3.1 When installing, select Add Python 3.5 to PATH below, the path will be added automatically after the installation is completed 3.2 In Computer--> Properties--> Advanced--> Environment Variables--> path, add the path where python is located C:\python and C:\python\Scripts (the latter is used when PIP installs the library) Success
5. Heaven-sacrifice ceremony (ps: The mystery of the programmer must also be carried out, otherwise there will be infinite BUG!)
5.1 Directly enter in the cmd command: print("hello world")
5.2 Create a new hello.py file, open it in IDLE mode and enter: print( "hello world") and then save and run it with F5 Cancel the option
I am just a py novice and just started learning. If there are any mistakes, please include them and provide guidance.
The above is the detailed content of Environment installation for beginners in Python. For more information, please follow other related articles on the PHP Chinese website!