Python development environment is quickly set up

Quickly set up the Python development environment


1. Open the Python official website and download the python development package.

  https://www.python.org/
  
  https://www.python.org/downloads/
  
  It is recommended to download Python3 web_install.exe in windows system, because it automatically installs the required vc runtime library and registration related information.

   

   In addition, you can download ActivePython and install it at http://www.activestate.com/activepython, which contains pip, pypm and other package management installation tools.

  
2. Add the directory where python.exe is located to the system PATH environment variable.
   
    Right-click-"Computer-"Properties-"Advanced System Settings -" Environment Variables, select Path in the list below, and click Edit. Attach the directory where Python is located at the end of the string.


3. Open the console cmd


   Type: python and press Enter. At this time, there should be a response. If there is no response, it means that python has not been installed successfully or the path has not been set correctly.

   
   Type "print("hello")" and press Enter, the system should display hello.
   
   OK! The Runtime is built.


4. Use eclipse to develop python to
   
   download the latest version of eclipse. version above mars. The system needs to install Java SE Runtime to 
   
   open eclipse, click "help -> Eclipse Marketplace",
   
   type "PyDev" to search, select PyDev to install, (if you are prompted to require other components, click update), after completion, restart Eclipse.
   
   Click "Window -> Preferences" to locate "PyDev -> Interpreters -> Python Interpreter", click "Add" or "Quick Auto Config" to add a Python directory.
   
   
   "File -> New -> PyDev Project", create a new Project.
   
   Right-click #{Project} -> New -> PyDev Module and write the package name and file name. Then the Template selection box that pops up select Empty or PyDev Main to
   
   open the newly created file, add a line of code print("hello") at the end of the file, and press F11 to run. You can see the effect.
      
   OK! IDE is built!

Guess you like

Origin blog.csdn.net/RoadToTheExpert/article/details/52451196