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