using.pdf

(303 KB) Pobierz
Python Setup and Usage
Release3.4.0
Guido van Rossum
Fred L. Drake, Jr., editor
April 17, 2014
Python Software Foundation
Email:docs@python.org
CONTENTS
1
Command line and environment
3
1.1
Command line
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3
1.2
Environment variables
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7
2
Using Python on Unix platforms
11
2.1
Getting and installing the latest version of Python . . . . . . . . . . . . . . . . . . . . . . . . . .
11
2.2
Building Python
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
11
2.3
Python-related paths and files
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
12
2.4
Miscellaneous
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
12
2.5
Editors
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
12
3
Using Python on Windows
13
3.1
Installing Python . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
13
3.2
Alternative bundles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
13
3.3
Configuring Python
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
13
3.4
Python Launcher for Windows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
15
3.5
Additional modules
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
19
3.6
Compiling Python on Windows
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
19
3.7
Other resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
20
4
Using Python on a Macintosh
21
4.1
Getting and Installing MacPython . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
21
4.2
The IDE
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
22
4.3
Installing Additional Python Packages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
22
4.4
GUI Programming on the Mac . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
22
4.5
Distributing Python Applications on the Mac
. . . . . . . . . . . . . . . . . . . . . . . . . . . .
23
4.6
Other Resources
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
23
5
Additional Tools and Scripts
25
5.1
pyvenv - Creating virtual environments
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
25
A
Glossary
27
B
About these documents
37
B.1
Contributors to the Python Documentation
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
37
C
History and License
39
C.1
History of the software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
39
C.2
Terms and conditions for accessing or otherwise using Python . . . . . . . . . . . . . . . . . . .
39
C.3
Licenses and Acknowledgements for Incorporated Software
. . . . . . . . . . . . . . . . . . . .
42
D
Copyright
55
Index
57
i
ii
Python Setup and Usage, Release 3.4.0
This part of the documentation is devoted to general information on the setup of the Python environment on
different platform, the invocation of the interpreter and things that make working with Python easier.
CONTENTS
1
1342694412.001.png
 
Zgłoś jeśli naruszono regulamin