Python- basic course - the first -03-Python environment to build

3.1Python environment to build

Python is a cross-platform, portable programming language, it can be installed in windows, Linux and Mac OS X systems.
After the installation is complete, you will get the Python interpreter environment, you can view the python command input terminal is already in accordance with local python and python version. One thing to note here is that, if not added to the python installation directory environment variable, you will get an error (python is not an internal command or external command, executable program). You need to install the python environment to the environment variable.

3.2Python Download

python official website: HTTPS: //www.python.org/
python document address: https: //www.python.org/doc/
suggest that you download and learn python 3 version, of course, you can download python 2 version. Some would tangle in the end choose python 2 or python 3?
In fact, there does not need to tangle, the official explanation here: https://wiki.python.org/moin/Python2orPython3 , its full meaning is basically the Python 3 language now and in the future, Python 2 will become past tense .

The differences between each version 3.3

is a 32-bit x86, x86-64 64 is
web-based installer -> a web-based network to download and install
executable installer -> install executable by exe
embeddable zip file -> already downloaded archive may be embedded in other applications (installation-free version)

Installation under Windows python

According to the official website to download the pack, followed by basic is the next step on it.
01. When installed, this option is checked on. You will directly add environment variables.
Here Insert Picture Description
02. Add pip
Here Insert Picture Description

Python installed under Linux

The vast majority of Linux distributions installed by default python, but the default installation of a python 2. If you want to install python 3 version to install their own needs.
Installation depends python3.6 possible use of

yum install openssl-devel bzip2-devel expat-devel gdbm-devel readline-devel sqlite-devel
yum -y install gcc*
Released five original articles · won praise 1 · views 152

Guess you like

Origin blog.csdn.net/weixin_44640811/article/details/104072252