One of the Python Dafa-python is what, and install

Source: Internet
Author: User

individual Independent blog http://www.xbman.cnSource:Http://www.xbman.cn/article/2 saying goes said well will be a skill to travel the world. Today, we begin to record and share Python's knowledge, which is a summary of your own learning. What's the first Python and Python installation Python is a computer programming language. Operational children's shoes know that this is not the same as the shell (Weixiensen is often asked this question by interview.) Python is the Orthodox programming language, just like java,php. Invented by Dutch Guido van Rossum (Uncle Tortoise) in 1989, the first public offering was released in 1991. Not much. Click Python is what Python is a high-level language, the development efficiency is quite high, simply say that Java to write 100 lines of code implementation of Python may be 10 lines to be done. What can I do with python? Can do daily tasks, take the Ops shoes, Python can replace a lot of shell scripts, automation tasks, automated release, etc., the famous automation tools Salt,ansible is written by Python, can do Web site, YouTube, watercress is written by Python , can do the backstage of the network game, many the backstage of the online game is developed by Python. There are many more Python installations

windows下安装

Although it is said that Windows is not the best development platform, but we are a poor small operation, you know the official website to download the latest Python Install the official website open and click Next-Next-next installation.

linux下安装

I believe a lot of children's shoes still need to install Python under Linux and publish their own programs, here write well ...
wget Https://www.python.org/ftp/python/2.7.10/Python-2.7.10.tgzyum install zlib zlib-devel OpenSSL oopenssl-devel- YTAR-ZXVF python-2.7.10.tgzcd python-2.7.10./configure && make && make Installln-s/usr/local/bin/ Python2.7/usr/bin/python

After installing according to the above program, you may encounter Yum running an error, please modifyvim /usr/bin/yumThe first line of#!/usr/bin/pythonSwitch#!/usr/bin/python2.6Can

Install PIP

pip is a Python package installation tool, similar to Yum under Linux.

wget https://pypi.python.org/packages/ff/d4/209f4939c49e31f5524fa0027bf1c8ec3107abaf7c61fdaad704a648c281/ SETUPTOOLS-21.0.0.TAR.GZ#MD5=81964FDB89534118707742E6D1A1DDB4 the same, do the installation:tar vxf  After the Setuptools-21.0.0.tar.gz cd setuptools-21.0.0python setup.py  install installation is complete, download PIP. Its information is in the following Web site: Https://pypi.python.org/pypi/pip The latest version is 8.1.1, download link: wget https://pypi.python.org/packages/41/27/ 9a8d24e1b55bd8c85e4d022da2922cb206f183e2d18fee4e320c9547e751/pip-8.1.1.tar.gz#md5= 6b86f11841e89c8241d689956ba99ed7 the same, do the installation tar vxf pip-8.1.1.tar.gz cd pip-8.1.1python  Setup.py install

under >mac

Installing the PYTHONMAC system on your Mac is OS X 10.8 and the Python version that comes with the system is 2.7. No need to install a self-python2.7, the following installation method: Download the Python 22.7 installer from the Python website, double-click Run and install, method two: If homebrew is installed, install it directly from the command brew install Python.


This article is from the "Magsun linux" blog, please be sure to keep this source http://weihaoxuan.blog.51cto.com/8698172/1924717

One of the Python Dafa-python is what, and install

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.