Linux 下安装easy_install 安装pip 安装django

本文详细介绍了如何在Linux CentOS6.5系统上在线安装easy_install,接着使用pip安装Django,包括安装最新稳定版和特定版本1.4.5。在安装过程中遇到'gcc'编译错误,文章提供了具体的解决方案。
摘要由CSDN通过智能技术生成

Centos6.5 下在线安装easy_install

 wget --no-check-certificate https://bootstrap.pypa.io/ez_setup.py
 python ez_setup.py --insecure


执行过程如下:

[root@localhost data]# wget --no-check-certificate https://bootstrap.pypa.io/ez_setup.py
--2014-12-27 11:33:41--  https://bootstrap.pypa.io/ez_setup.py
Resolving bootstrap.pypa.io... 103.245.222.175
Connecting to bootstrap.pypa.io|103.245.222.175|:443... connected.
WARNING: cannot verify bootstrap.pypa.io’s certificate, issued by “/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert SHA2 High Assurance Server CA”:
  Issued certificate not yet valid.
HTTP request sent, awaiting response... 200 OK
Length: 11432 (11K) [text/x-python]
Saving to: “ez_setup.py”

100%[====================================================================================================>] 11,432      --.-K/s   in 0s      

2014-12-27 11:33:41 (510 MB/s) - “ez_setup.py” saved [11432/11432]

[root@localhost data]# python ez_setup.py --insecure
Downloading https://pypi.python.org/packages/source/s/setuptools/setuptools-15.2.zip
Extracting in /tmp/tmpHg_lBZ
Now working in /tmp/tmpHg_lBZ/setuptools-15.2
Installing Setuptools
running install
running bdist_egg
running egg_info
writing requirements to setuptools.egg-info/requires.txt
writing setuptools.egg-info/PKG-INFO
writing top-level names to setuptools.egg-info/top_level.txt
writing dependency_links to setuptools.egg-info/dependency_links.txt
writing entry points to setuptools.egg-info/entry_points.txt
reading manifest file 'setuptools.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'setuptools.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build                                                                                                                                            。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。                   <span style="white-space:pre">																	</span>  byte-compiling build/bdist.linux-x86_64/egg/setuptools/utils.py to utils.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/lib2to3_ex.py to lib2to3_ex.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/py26compat.py to py26compat.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/dist.py to dist.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/py27compat.py to py27compat.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/depends.py to depends.pyc
byte-compiling build/bdist.linux-x86_64/egg/_markerlib/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/_markerlib/markers.py to markers.pyc
byte-compiling build/bdist.linux-x86_64/egg/easy_install.py to easy_install.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying setuptools.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying setuptools.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying setuptools.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying setuptools.egg-info/entry_points.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying setuptools.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying setuptools.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying setuptools.egg-info/zip-safe -> build/bdist.linux-x86_64/egg/EGG-INFO
creating dist
creating 'dist/setuptools-15.2-py2.6.egg' and adding 'build/bdist.linux-x86_64/egg&#
easy_installPython 的一个扩展包管理工具,用于方便地安装和管理第三方扩展包。它是 Python 中的一种标准安装工具,使得安装扩展包变得简单易用。 要使用 easy_install 安装扩展包,首先需要确保已经正确安装Python 环境。步骤如下: 1. 首先,从官方网站(https://www.python.org/downloads/)下载并安装最新版本的 Python。 2. 确保安装时选择了“Add Python to PATH”选项,使得 Python 可以全局访问。 3. 打开终端或命令提示符窗口,输入命令“easy_install”来验证是否成功安装easy_install。如果出现相关信息,则说明已经成功安装。 一旦确认安装成功,就可以开始使用 easy_install安装扩展包。步骤如下: 1. 打开终端或命令提示符窗口,输入命令“easy_install 包名”来安装指定的扩展包。例如:要安装名为“requests”的扩展包,可以输入“easy_install requests”。 2. easy_install 会自动从 Python Package Index(简称 PyPI)中下载和安装指定的扩展包。 3. 安装完成后,可以通过导入扩展包的方式在 Python 中使用它们。例如,在 Python 脚本中加入“import requests”即可使用 requests 扩展包提供的功能。 需要注意的是,easy_install 只能安装 Python 2.x 版本的扩展包。对于 Python 3.x 版本,推荐使用 pip 工具来代替 easy_install 进行扩展包管理。 总的来说,easy_install 是一种简单易用的扩展包安装工具,可以帮助用户方便地安装和管理第三方扩展包。通过遵循一定的步骤,即可轻松使用 easy_install安装自己需要的扩展包。
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值