Installation and use of IDLE and Anaconda

Blogger: Light of Destiny

Column: Python Programming

Table of contents

Python download and installation

Anaconda installation and use

How Python programs run


Python download and installation

Commonly used integrated development environments IDE

  1. Default programming environment: IDLE---Beginner ( Download Python | Python.org )
  2. Other commonly used development environments:

Anaconda installation and use

Anaconda3 (with Jupyter and Spyder): Free Download | Anaconda

  • Anaconda is a data processing and scientific computing platform based on Python. It has built-in many very useful third-party libraries. Installing Anaconda is equivalent to automatically installing Python and some commonly used libraries such as Numpy, Pandas, Scrip, Matplotlib, etc. alright.
  • After successfully installing Anaconda3, you can also use the command line tool conda to manage the extension library. condalist (list modules installed by Anaconda3)
  • After installing Anaconda3, JupyterNotebook and Spyder are the two most commonly used development environments in the start menu.

How Python programs run

  1. Python program running process
  2. Interpreter:
  • python.exe---CLI
  • pythonw.exe---GUI

There are three different implementations of the Python language:

  • Cython is the standard implementation of Python, an interpreter implemented in portable C language. It performs poorly in multi-threading performance and does not support JIT (just-in-time compilation), resulting in insufficient execution speed.
  • Jyphon is the implementation of Python in the Java environment. It translates the Python source program into Java bytecode and runs it through the JVM.
  • PyPy uses a Python interpreter implemented in Python, supports JIT, and has faster execution speed.

Common extensions for Python files

  • .py: Python source file, which is interpreted and executed by the Python interpreter
  • .pyw: Python source file, used for graphical interface program files, also interpreted and executed by the Python interpreter
  • .pyc: Python bytecode file, which can be used to hide Python source code and improve running speed. It is platform-independent bytecode and is automatically compiled and generated when the module is first imported.

Summarize

How a Python program runs:

  1. Through the interpreter python.exe or pythonw.exe + python program source code file
  2. Run in integrated development environment

Guess you like

Origin blog.csdn.net/VLOKL/article/details/133417933