Python is a common language and LINUX,WINDOWS,MAC can be installed
Linux Installation:
1, Linux6.5 installed Python package, directly through the Python command to enter the Python environment, through exit () or ctrl+d exit the environment.
2, the Linux comes with the Python environment is not friendly, the command can not be through the TAB key fuzzy input, the installation of Ipython package to upgrade;
You can install the latest version directly from PIP install Ipython
Description
PIP command can be installed directly via Yum install-y Python-pip
The PIP command installs the extension package principle is, the login Https://pypi.python.org/pypi website, downloads the latest expansion pack, for example: Pip installs Ipython is the login Https://pypi.pytho N.org/pypi/ipython download.
It is important to note that Https://pypi.python.org/pypi/ipython provides an extension package that is up-to-date and supports only 2.7 and 3.4 versions of Python, while Linux comes with a python of 2.6, so it is not possible to install the expansion pack directly. Therefore, the installation Ipython need to specify the version number: Pip Install ipython==1.2.1
3, after the installation is complete, you can list all the expansion packages through the PIP list, the installation is successful, it will show the extension module and version
650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M02/A7/4C/wKioL1nkqGixOfQHAAAhWyl0Lz8454.png-wh_500x0-wm_ 3-wmp_4-s_2412755101.png "title=" 1.png "alt=" Wkiol1nkqgixofqhaaahwyl0lz8454.png-wh_50 "/>
Once the installation is successful, it is automatically populated by entering the Python environment directly from the Ipython command.
Windows installation:
1, can go to the Python official website http://www.python.org download the Windows version msi, installs directly can
650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M01/08/9D/wKiom1nkqy-DS-1PAAHPNAKi4I4853.png-wh_500x0-wm_ 3-wmp_4-s_1335995431.png "title=" 2.png "alt=" Wkiom1nkqy-ds-1paahpnaki4i4853.png-wh_50 "/>
After downloading, double-click the default installation:
650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M01/A7/4D/wKioL1nkrjvhXgCwAAAgDZxiVQE035.png-wh_500x0-wm_ 3-wmp_4-s_1596754455.png "title=" 3.png "width=" "height=" "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width:100px; height:110px; "alt=" Wkiol1nkrjvhxgcwaaagdzxivqe035.png-wh_50 "/>
2. Add environment Variables for Windows (add the installation directory to the environment variable)
650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M00/A7/4C/wKioL1nkqJyRWERIAAMUNNPPey4299.png-wh_500x0-wm_ 3-wmp_4-s_1504343940.png "title=" 4.png "alt=" Wkiol1nkqjyrweriaamunnppey4299.png-wh_50 "/>
3. After adding the environment variable, you can use Python directly in the cmd window.
650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M02/08/9D/wKiom1nkq2OglBHtAAAVsSheKHk095.png-wh_500x0-wm_ 3-wmp_4-s_3094618325.png "title=" 5.png "alt=" Wkiom1nkq2oglbhtaaavsshekhk095.png-wh_50 "/>
===========================================================================================
Write a test script:
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>
650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M02/08/9D/wKiom1nksVfBkU5CAACZuzcJFr4876.png-wh_500x0-wm_ 3-wmp_4-s_4211724406.png "title=" Bv04y8o$ueo${m ' Jb5ufxuc.png "alt=" wkiom1nksvfbku5caaczuzcjfr4876.png-wh_50 "/ >
This article is from the "12054904" blog, please be sure to keep this source http://12064904.blog.51cto.com/12054904/1972995
Python Learning-Installation deployment