Learn Python the hard Way-python installation under Windows and Linux

Source: Internet
Author: User

1.Windows under Installation
https://www.python.org/downloads/download the appropriate version for installation
Note: Add the Python installation path to the path path of the system environment variable to enter Python into the python environment under the command-line window


2.Linux installation



tar.bz form TAR-ZJVF Compressed package
c. Enter the unpacked folder
Configure the environment:./configure--prefix= Installation path (default =/usr/local/lib)
compile: Make
Span style= "font-size:15px;" > install: Make install
Note: If an error occurs during configuration of the environment, some libraries are missing, and the installation is missing after the library completes
   If the configuration environment succeeds, makefile


In general, Python has been installed under Linux, at this point in the shell input python started the original Python, want to start the latest installation of Python, you need to set:
Method One: Modify in the shell, the temporary modification takes effect, export Path=/usr/local/bin: $PATH only in the current shell and its child shell, invalid after reboot
Method Two: Modify the configuration file, the permanent effect in the user home directory of the. BASHRC Add export path=/usr/local/bin: $PATH, can be restarted

Learn Python the hard Way-python installation under Windows and Linux

Related Article

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.