Python version of the selection and installation

Summary Python
Python at the end of 1989 was invented by Guido van Rossum, the first public release was released in 1991. Python is an interpreted, object-oriented, dynamic data type high-level programming language, which has excellent versatility, efficiency, platform portability, and safety. Python is more popular in recent years in the field of data mining and artificial intelligence. With the development of software testing industry, but also to test the efficiency of higher demand, while Python can just respond to this demand. Of course, in addition to language Python, Java, Ruby and other languages in the testing field and we have a good usage scenarios. This panel will focus on how to use the Python interface to do the automation expansion.

Python2 and Python3 choice
because early versions of Python design there are some deficiencies in the foundations. In 2008, when Guido van Rossum again develop Python 3.0 (referred to as Python 3000, or simply Py3k), Python3 in the design of a good solution to these remaining issues, and has also been some improvement in performance, however Python3 bring the biggest problem is not fully backward compatible, then backward compatible version is Python2.6. Python development team can not suddenly let go of all projects and libraries are Python3.0 above. So, two parallel versions entered the long-term development and maintenance of the state. But speed is updated, Python3 updates much faster than the speed of Python2, because Python2 mainly to maintain the main. Python3 is the future trend, the proposed new direct to get started Python3.

Note: Python3.x and Python2.x, where x represents the small version number. For example, the current version of Python latest two were Python3.7.1 and Python2.7.13.

Python3 installed
only after installing the operating system environment Python, Python program to run. If your operating system is ubuntu, it can not be installed because ubuntu already installed by default Python2. Python installation package can be downloaded from the official website https://www.python.org/, if icon

Since Python is cross-platform, in UNIX, Windows and Macintosh compatible are good, so the reader can be downloaded according to their own operating system. Here python3.6.6 example to install under Windows. Click Download.

Depending on your host operating system digit, select the version you want to download, if your computer is a 64/32 bit, download 64/32 bit installation package.

Double click to open, select Add Python 3.6 to PATH, and then click Install Now, keep in mind that the installation path here to python, which is C: \ Users \ Administrator \ AppData \ Local \ Programs \ Python \ Python36, below Pycharm configuration need to use.

python installation is very simple, has been clicking next, below is a successful installation interface.

Check python environment, WIN key + R key to open (or Start menu, input cmd), and then enter cmd, enter into the command prompt. The following prompt appears, indicating python environment has been successfully installed.

If the FIG occurs, 'python' is not an internal or an external environment, the environment is not described python installed successfully. Under normal circumstances is the environment variable problem, turn on the computer -> System Properties -> Advanced System Settings -> Environment Variables, find the path variables, click Edit, to C: \ Users \ Administrator \ AppData \ Local \ Programs \ Python \ Python36 added to the path variable, pay attention, if not the end of the path; please precede path; click OK.

Welcome attention to micro-channel public number: Wang software testing. Software testing exchange group: 809 111 560

Guess you like

Origin blog.51cto.com/14421641/2415246