Python easy_install工具安装
2013-06-03 15:14
603 查看
在安装python第三方类库时,python提供了一个类似于yum的命令easy_install,但是系统一般都是不会自带easy_install命令的,故将easy_install命令的安装方法介绍如下:
1)下载setuptools:
wget http://pypi.python.org/packages/2.4/s/setuptools/setuptools-0.6c11-py2.4.egg#md5=bd639f9b0eac4c42497034dec2ec0c2b
2)安装setuptoolssh setuptools-0.6c11-py2.4.egg
3)测试easy_install命令
[sql] view plaincopyprint?[root@Hadoopmaster-177 ~]# easy_install --help
Global options:
--verbose (-v) run verbosely (default)
--quiet (-q) run quietly (turns verbosity off)
--dry-run (-n) don't actually do anything
--help (-h) show detailed help message
Options for'easy_install' command:
--prefix installation prefix
--zip-ok (-z) install package as a zipfile
--multi-version (-m) make apps have to require() a version
--upgrade (-U) force upgrade (searches PyPI for latest
versions)
--install-dir (-d) install package to DIR
--script-dir (-s) install scripts to DIR
--exclude-scripts (-x) Don't install scripts
--always-copy (-a) Copy all needed packages to install dir
--index-url (-i) base URL of Python Package Index
--find-links (-f) additional URL(s) to search for packages
--delete-conflicting (-D) no longer needed; don't use this
--ignore-conflicts-at-my-risk no longer needed; don't use this
--build-directory (-b) download/extract/build in DIR; keep the
results
--optimize (-O) also compile with optimization: -O1 for
"python -O", -O2 for"python -OO", and -O0 to
disable [default: -O0]
--record filename in which to record list of installed
files
--always-unzip (-Z) don't install as a zipfile, no matter what
--site-dirs (-S) list of directories where .pth files work
--editable (-e) Install specified packages in editable form
--no-deps (-N) don't install dependencies
--allow-hosts (-H) pattern(s) that hostnames must match
--local-snapshots-ok (-l) allow building eggs from local checkouts
usage: easy_install [options] requirement_or_url ...
or: easy_install --help
1)下载setuptools:
wget http://pypi.python.org/packages/2.4/s/setuptools/setuptools-0.6c11-py2.4.egg#md5=bd639f9b0eac4c42497034dec2ec0c2b
2)安装setuptoolssh setuptools-0.6c11-py2.4.egg
3)测试easy_install命令
[sql] view plaincopyprint?[root@Hadoopmaster-177 ~]# easy_install --help
Global options:
--verbose (-v) run verbosely (default)
--quiet (-q) run quietly (turns verbosity off)
--dry-run (-n) don't actually do anything
--help (-h) show detailed help message
Options for'easy_install' command:
--prefix installation prefix
--zip-ok (-z) install package as a zipfile
--multi-version (-m) make apps have to require() a version
--upgrade (-U) force upgrade (searches PyPI for latest
versions)
--install-dir (-d) install package to DIR
--script-dir (-s) install scripts to DIR
--exclude-scripts (-x) Don't install scripts
--always-copy (-a) Copy all needed packages to install dir
--index-url (-i) base URL of Python Package Index
--find-links (-f) additional URL(s) to search for packages
--delete-conflicting (-D) no longer needed; don't use this
--ignore-conflicts-at-my-risk no longer needed; don't use this
--build-directory (-b) download/extract/build in DIR; keep the
results
--optimize (-O) also compile with optimization: -O1 for
"python -O", -O2 for"python -OO", and -O0 to
disable [default: -O0]
--record filename in which to record list of installed
files
--always-unzip (-Z) don't install as a zipfile, no matter what
--site-dirs (-S) list of directories where .pth files work
--editable (-e) Install specified packages in editable form
--no-deps (-N) don't install dependencies
--allow-hosts (-H) pattern(s) that hostnames must match
--local-snapshots-ok (-l) allow building eggs from local checkouts
usage: easy_install [options] requirement_or_url ...
or: easy_install --help
相关文章推荐
- python自动安装工具easy_install的使用
- Python中的包安装工具easy_install
- Python包管理工具easy_install安装
- python自动安装工具easy_install的使用
- linux python工具pip和 easy_install的安装
- Python包管理工具easy_install安装
- Python包管理工具easy_install安装
- 安装Python的easy_install工具和BeautifulSoup模块
- Python包管理工具easy_install安装
- python在Windows下安装setuptools(easy_install工具)步骤详解
- Linux CentOS 安装Python的easy_install工具
- 安装Python 包自动安装工具 easy_install 和pip
- python安装setuptools(easy_install工具)
- Python 的模块安装工具 easy_install
- windows下安装python的easy_install工具
- mac 安装python软件包的工具--easy_install
- 为Python安装easy_install工具
- Centos 6.5 python 2.6.6 升级到 2.7.3,并安装easy_install和pip工具过程
- python自动安装工具easy_install的使用
- python 自动安装工具 setuptools(easy_install) 的使用