Python - Environment Setup
Python - Environment Setup
Setup
Getting Python
The most up-to-date and current source code,
binaries, documentation, news, etc., is available
on the official website of Python
https://www.python.org/
Installing Python
Python distribution is available for a wide
variety of platforms. You need to download only
the binary code applicable for your platform
and install Python.
make
make install
Windows Installation
Here are the steps to install Python on Windows
machine.
Macintosh Installation
Recent Macs come with Python installed, but it
may be several years out of date. See
http://www.python.org/download/mac/ for
instructions on getting the current version along
with extra tools to support development on the
Mac. For older Mac OS's before Mac OS X 10.3
(released in 2003), MacPython is available.
Setting up PATH
Programs and other executable files can be in
many directories, so operating systems provide
a search path that lists the directories that the
OS searches for executables.
1
PYTHONPATH
2
PYTHONSTARTUP
3
PYTHONCASEOK
4
PYTHONHOME
Interactive Interpreter
You can start Python from Unix, DOS, or any
other system that provides you a command-line
interpreter or shell window.
$python # Unix/Linux
or
python% # Unix/Linux
or
1
-d
2
-O
3
-S
4
-v
5
-X
6
-c cmd
7
file
or
or
Print Page