
2. Using the Python Interpreter — Python 3.13.3 documentation
1 day ago · The Python interpreter is usually installed as /usr/local/bin/python3.13 on those machines where it is available; putting /usr/local/bin in your Unix shell’s search path makes it possible to start it by typing the command:
1. Command line and environment — Python 3.13.3 documentation
The Python interpreter is configured by default to use colors to highlight output in certain situations such as when displaying tracebacks. This behavior can be controlled by setting different environment variables.
The Python Tutorial — Python 3.11.12 documentation
Mar 11, 2012 · The Python interpreter is easily extended with new functions and data types implemented in C or C++ (or other languages callable from C). Python is also suitable as an extension language for customizable applications. This tutorial introduces the reader informally to the basic concepts and features of the Python language and system.
4. Using Python on Windows — Python 3.13.3 documentation
1 day ago · Besides using the automatically created start menu entry for the Python interpreter, you might want to start Python in the command prompt. The installer has an option to set that up for you. On the first page of the installer, an option labelled “Add Python to PATH” may be selected to have the installer add the install location into the PATH .
Python Setup and Usage — Python 3.13.3 documentation
2 days ago · Python Setup and Usage¶ This part of the documentation is devoted to general information on the setup of the Python environment on different platforms, the invocation of the interpreter and things that make working with Python easier.
Extending and Embedding the Python Interpreter
3 days ago · Extending and Embedding the Python Interpreter¶ This document describes how to write modules in C or C++ to extend the Python interpreter with new modules. Those modules can not only define new functions but also new object types and their methods.
1. Whetting Your Appetite — Python 3.13.3 documentation
4 days ago · The interpreter can be used interactively, which makes it easy to experiment with features of the language, to write throw-away programs, or to test functions during bottom-up program development. It is also a handy desk calculator.
venv — Creation of virtual environments — Python 3.13.3 …
1 day ago · When a Python interpreter is running from a virtual environment, sys.prefix and sys.exec_prefix point to the directories of the virtual environment, whereas sys.base_prefix and sys.base_exec_prefix point to those of the base Python used to create the environment.
1. Embedding Python in Another Application — Python 3.13.3 …
1 day ago · The Python API allows this by extending the embedded interpreter. That is, the embedded interpreter gets extended with routines provided by the application. While it sounds complex, it is not so bad. Simply forget for a while that …
5. 在其它应用程序嵌入 Python — Python 2.7.18 文档
Feb 7, 2018 · Simply forget for a while that the application starts the Python interpreter. Instead, consider the application to be a set of subroutines, and write some glue code that gives Python access to those routines, just like you would write a normal Python extension.