Python Environment setup
Start by entering the "python" command from the terminal window to see if you have installed Python and Python's installation version locally:
If not installed, you need to download the installation, the following is how Linux and Windows are installed
Linux:
1. Go to the Http://www.python.org/download page and download the installation package for Linux
2. Then execute:
TAR-JXVF python**.tar.bz2
CD python**
./configure
Make
Make install to complete installation
Note: Python is typically installed in the/usr/local/bin directory, and the Python library is installed in/USR/LOCAL/LIB/PYTHONXX,XX for the version number of the python you are using
Windows:
1. Go to http://www.python.org/download page and download MSI installation package
2, double-click the installation can
Environment variable configuration:
Linux:
Bash Shell:
Export path= "$PATH:/usr/local/bin/python"
Sh:
Path= "$PATH:/usr/local/bin/python"
Windows:
Right-click My Computer-Properties-advanced-advanced-environment variables:
Edit the path variable and enter the Python installation directory
Python runs:
1, interactive mode of operation:
terminal window Input "Python" into interactive mode
2. Command line script run:
Python **.py Note that the PY must be under the current path, otherwise you will be prompted not to find the path error
3. Idle operation
Python Foundation 1-python Environment Building