Tags: style blog http color using OS strong IOResources:Mac OS X Python installation mysqldb module http://www.codeif.com/post/1073/ MAC OSX uses Python to install modules for issues http://www.myexception.cn/operating-system/1616547.htmlMySQL and Django are installed in Mac
1. Direct installation:Brew install Python (similar to yum install)Note: This version of Python that is installed directly may not be the latest version2. Download from official website:Official website:https://www.python.org/650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M01/08/A0/wKiom1nkzimgVLQTAABLtfrT0ks8
First step: Download python2.7.9 version Source:wget http://python.org/ftp/python/2.7.9/Python-2.7.9.tgzUnzip the file#tar ZXVF python-2.7.9. Tar.bz2[email protected]:/opt/software# CD python-2.7.9/[email protected]:/opt/software/python-2.7.9# dirconfig.guess Doc LICENSE Obj
Often in the process of installing software with PIP installation, then I always feel that Pip is for Linux and Mac, so I never studied Pip carefully, and then used Python to know that Pip is so useful
Summarize the usage of
1 Prefacepipis a Python package management tool, mainly for installation PyPI on the package, can replace the easy_install tool.
Github:https://github.com/pypa/pip
doc:https://pip.pypa.io/en/latest/
2 getting Pip2.1 Script installation Pip
$ Curl-o https://raw.github.com/pypa/pip/master/contr
1, first check whether it comes with Pip#pip--version If an exception occurs, you can go to view/library/python/2.7/site-packages#2, if PIP is not installedsudo easy_install pip3, install Django#pip
Label:one. Install Python 1) Check install or not Enter the command on the Mac Terminal: which python to see the path to Python 2) When not installed, manually download the installation package address: https://www.python.org/down
1, python2.7 and Pip in 192.168.0.65#ssh 192.168.0.65
Upgrade to python2.7
#cd/usr/local#wget https://www.python.org/ftp/python/2.7.10/Python-2.7.10.tgz # tar ZXVF python-2.7.10.tgz# CD Python-2.7.10# mkdir/usr/local/python2.7#./configure--prefix=/usr/local/py
This article describes how to install the python component pip on linux and rely on wget. Currently, it is not smart enough. for details, refer to the following code:
#! /Bin/bashFiles_url = (https://pypi.python.org/packages/source/s/setuptools/setuptools-2.1.tar.gz#md5=2044725530450d0517393882dc4b7508 https://pypi.python.org/packages/source/p/
This article describes how to install the python component pip on linux and rely on wget. Currently, it is not smart enough.
The code is as follows:
#! /Bin/bashFiles_url = (https://pypi.python.org/packages/source/s/setuptools/setuptools-2.1.tar.gz#md5=2044725530450d0517393882dc4b7508 https://pypi.python.org/packages/source/p/
Turn from: http://jiayanjujyj.iteye.com/blog/1409819
Just started to learn python, in looking at the document and other people's blog to introduce the installation package with Easy_install, Setuptools, some use Pip,distribute, then what is the relationship between these tools, look at the following picture will understand
It can be seen that distribute is replaced by Setuptools, and
After Mac OSX is upgraded to 10.10 (Yosemite), when you install the Python package with Pip and Easy_install, if the package needs to be compiled, the compilation fails with the following error:Build/temp.macosx-10.10-x86_64-2.7/greenlet.o-o build/lib.macosx-10.10-x86_64-2.7/greenlet.soLd:file not Found:python.exeClang
. Install PipPip is a Python installation tool, and many common Python tools can be installed via PIP.To install PIP, first install Setuptools. The link below will give you the information, the latest version is 21.0.0:Https://pyp
###########.Installing Pip and Setuptools(based on experience a new system often does not zlib-devel,openssl-devel these packages, make sure that Zlib,zlib-devel,openssl, Openssl-devel four packages are in order to ensure a smooth installation of Setuptools and PIP)Originally did not want to engage in setuptools, but rare record, just take this opportunity to figure out the relationship between the two thi
need to do the following:
Cp-r/usr/local/python3.5/lib/*/usr/lib64/
Ok. The PYTHON3 infrastructure is now installed. Second, install Pip and Setuptools
After all, the rich Third-party Library is the advantage of Python, in order to more easily install a Third-party library, using the
On Ubuntu14.04, the PIP version downloaded by sudo apt-get install python-pip is somewhat old, and the following problems are likely to occur when used[Email protected]:~# PIP Traceback (most recent call Last): File"/usr/bin/pip",
Before this problem, because there is no record, so the second time the pit, so the record of the retention processingcentos6.5, default python2.6, pip1.5.4Installing DjangoPip Install DjangoExecution Result:downloading/unpacking Django downloading Django-2.1.1.Tar. GZ (8.6MB):8. 6MB downloaded Running setup.py (path:/tmp/pip_build_root/django/setup.py) Egg_info forPackage Django Traceback (most recent call Last): File"", line -,inchFile"/tmp/pip_buil
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.