Python Foundation 1-python Environment Building

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.