search
HomeBackend DevelopmentPython TutorialWhere is the python interpreter installed?

Interpreter (English: Interpreter), also translated as interpreter, is a computer program that can directly translate and run high-level programming languages ​​line by line. The interpreter does not translate the entire program at once. It is just like a "middleman". Every time the program is run, it must be converted into another language before running. Therefore, the interpreter program runs relatively slowly. Every time it translates a line of program description, it runs immediately, then it translates the next line, runs it again, and so on.

Where is the python interpreter installed?

Goal

Install Python interpreter

Preparation

1.Windows Explorer

Display file extensions and display hidden files. Suffix: .txt.word.py

Uncheck Hide extensions for known file types.

Related recommendations: "Python Video Tutorial"

Where is the python interpreter installed?

Download

1. First open the Python official website and find the location shown in the picture. (Python download website: Python official website http://www. python.org)

Where is the python interpreter installed?

Where is the python interpreter installed?

(Understand) Version selection

Python3.7.0

3: Major version

7: Minor version

0: Minor version update (minor version)

We use the Python3 major version that we usually download Pay attention to the second digit of the small version

The small version number should be as large as possible

b represents the bate test version; rc is the version to be released;

means nothing is added after the version Official version available for download.

We choose a relatively new and stable version.

Windows x86 means 32-bit. x86-64 or amd64 means 64-bit.

web-based online installation; executable executable installation program

.exe; zip compressed package. We choose .exe. `

Finally choose python3.6.6-x86-

Install

Open the exe

Check "add python to path ", select custom installation.

optional features Select all

advanced option Check "add Python to environment variables."

install installation, close the dialog box after success.

Where is the python interpreter installed?

(Understand) the role of the folders in the installation directory

-document documents, instructions.

-library library

-scripts script

-Python.exe Python interpreter entry point

-Pythonw.exe compilation

helloworld

Double-click Python.exe to open the python interactive book command line.

Command line: non-graphical control interface. Interactive: Run the code we type all the time, the feature

starts with "》》》".

Type print ("hello world"), press Enter, and use English symbols.

Where is the python interpreter installed?

cmd and environment variables

Open the windows terminal (cmd) Command-based interface is lower level than graphical interface.

win7 User Start/Accessories/Command Prompt;

(Quickly open the command prompt windows r to open run, enter "cmd" and press Enter to open the command line.)

2. Enter python to enter the Python environment

Where is the python interpreter installed?

(understand) environment variables

1. The environment variables of windows are some configurations, which will be loaded when the system starts. .

2. The system variables in the environment variables are global, and the user variables are personalized.

3. Environment variables are a bit like desktop shortcuts, which record some paths.

Each path is separated by "; (semicolon)". When we execute it in the command line When a xxx.exe program is

, the system will search for these paths, and when there is such a program, it will be called.

4. If environment variables are not added when Python is installed, you need to add them manually for ease of use.

5. After installing the Python interpreter or modifying it, you need to restart the computer to take effect. (There is an environment without restarting

Variables take effect)

windows cmd terminal and Python interpreter

windows cmd terminal:

Related to the Windows operating system, for example, the ping command feature is "path".

Python interactive terminal: specially designed to run Python code commands. feature is""""".

3. Windows Terminal Type "Python" on the keyboard to enter the Python terminal.

4 .Python terminal Type "exit()" to return to the Windows terminal.

(Key points) Two ways to run code

Python interactive interpreter. Advantages: fast feedback. Disadvantages: Not suitable for editing large files.

Edit our code in the .py file. Running mode: "

under windows terminal, "python hello.py"". Advantages: Suitable for running or editing large files.

The above is the detailed content of Where is the python interpreter installed?. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
How do you append elements to a Python list?How do you append elements to a Python list?May 04, 2025 am 12:17 AM

ToappendelementstoaPythonlist,usetheappend()methodforsingleelements,extend()formultipleelements,andinsert()forspecificpositions.1)Useappend()foraddingoneelementattheend.2)Useextend()toaddmultipleelementsefficiently.3)Useinsert()toaddanelementataspeci

How do you create a Python list? Give an example.How do you create a Python list? Give an example.May 04, 2025 am 12:16 AM

TocreateaPythonlist,usesquarebrackets[]andseparateitemswithcommas.1)Listsaredynamicandcanholdmixeddatatypes.2)Useappend(),remove(),andslicingformanipulation.3)Listcomprehensionsareefficientforcreatinglists.4)Becautiouswithlistreferences;usecopy()orsl

Discuss real-world use cases where efficient storage and processing of numerical data are critical.Discuss real-world use cases where efficient storage and processing of numerical data are critical.May 04, 2025 am 12:11 AM

In the fields of finance, scientific research, medical care and AI, it is crucial to efficiently store and process numerical data. 1) In finance, using memory mapped files and NumPy libraries can significantly improve data processing speed. 2) In the field of scientific research, HDF5 files are optimized for data storage and retrieval. 3) In medical care, database optimization technologies such as indexing and partitioning improve data query performance. 4) In AI, data sharding and distributed training accelerate model training. System performance and scalability can be significantly improved by choosing the right tools and technologies and weighing trade-offs between storage and processing speeds.

How do you create a Python array? Give an example.How do you create a Python array? Give an example.May 04, 2025 am 12:10 AM

Pythonarraysarecreatedusingthearraymodule,notbuilt-inlikelists.1)Importthearraymodule.2)Specifythetypecode,e.g.,'i'forintegers.3)Initializewithvalues.Arraysofferbettermemoryefficiencyforhomogeneousdatabutlessflexibilitythanlists.

What are some alternatives to using a shebang line to specify the Python interpreter?What are some alternatives to using a shebang line to specify the Python interpreter?May 04, 2025 am 12:07 AM

In addition to the shebang line, there are many ways to specify a Python interpreter: 1. Use python commands directly from the command line; 2. Use batch files or shell scripts; 3. Use build tools such as Make or CMake; 4. Use task runners such as Invoke. Each method has its advantages and disadvantages, and it is important to choose the method that suits the needs of the project.

How does the choice between lists and arrays impact the overall performance of a Python application dealing with large datasets?How does the choice between lists and arrays impact the overall performance of a Python application dealing with large datasets?May 03, 2025 am 12:11 AM

ForhandlinglargedatasetsinPython,useNumPyarraysforbetterperformance.1)NumPyarraysarememory-efficientandfasterfornumericaloperations.2)Avoidunnecessarytypeconversions.3)Leveragevectorizationforreducedtimecomplexity.4)Managememoryusagewithefficientdata

Explain how memory is allocated for lists versus arrays in Python.Explain how memory is allocated for lists versus arrays in Python.May 03, 2025 am 12:10 AM

InPython,listsusedynamicmemoryallocationwithover-allocation,whileNumPyarraysallocatefixedmemory.1)Listsallocatemorememorythanneededinitially,resizingwhennecessary.2)NumPyarraysallocateexactmemoryforelements,offeringpredictableusagebutlessflexibility.

How do you specify the data type of elements in a Python array?How do you specify the data type of elements in a Python array?May 03, 2025 am 12:06 AM

InPython, YouCansSpectHedatatYPeyFeLeMeReModelerErnSpAnT.1) UsenPyNeRnRump.1) UsenPyNeRp.DLOATP.PLOATM64, Formor PrecisconTrolatatypes.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function