Easy install

来自开放百科 - 灰狐
(版本间的差异)
跳转到: 导航, 搜索
 
第1行: 第1行:
 
Easy Install is a python module (easy_install) bundled with setuptools that lets you automatically download, build, install, and manage Python packages.
 
Easy Install is a python module (easy_install) bundled with setuptools that lets you automatically download, build, install, and manage Python packages.
  
 +
http://peak.telecommunity.com/DevCenter/EasyInstall
 +
 +
==Install==
 +
wget http://peak.telecommunity.com/dist/ez_setup.py
 +
python ez_setup.py
 +
Setuptools version 0.6c5 or greater has been installed.
 +
(Run "ez_setup.py -U setuptools" to reinstall or upgrade.)
 +
==Use==
 +
Example 1. Install a package by name, searching PyPI for the latest version, and automatically downloading, building, and installing it:
 +
easy_install SQLObject
 +
Example 2. Install or upgrade a package by name and version by finding links on a given "download page":
 +
easy_install -f http://pythonpaste.org/package_index.html SQLObject
 +
Example 3. Download a source distribution from a specified URL, automatically building and installing it:
 +
easy_install http://example.com/path/to/MyPackage-1.2.3.tgz
 +
Example 4. Install an already-downloaded .egg file:
 +
easy_install /my_downloads/OtherPackage-3.2.1-py2.3.egg
 +
Example 5. Upgrade an already-installed package to the latest version listed on PyPI:
 +
easy_install --upgrade PyProtocols
 +
Example 6. Install a source distribution that's already downloaded and extracted in the current directory (New in 0.5a9):
 +
easy_install .
 +
Example 7. (New in 0.6a1) Find a source distribution or Subversion checkout URL for a package, and extract it or check it out to ~/projects/sqlobject (the name will always be in all-lowercase), where it can be examined or edited. (The package will not be installed, but it can easily be installed with easy_install ~/projects/sqlobject. See Editing and Viewing Source Packages below for more info.):
 +
easy_install --editable --build-directory ~/projects SQLObject
 
http://peak.telecommunity.com/DevCenter/EasyInstall
 
http://peak.telecommunity.com/DevCenter/EasyInstall

2007年2月24日 (六) 14:36的版本

Easy Install is a python module (easy_install) bundled with setuptools that lets you automatically download, build, install, and manage Python packages.

http://peak.telecommunity.com/DevCenter/EasyInstall

Install

wget http://peak.telecommunity.com/dist/ez_setup.py
python ez_setup.py
Setuptools version 0.6c5 or greater has been installed.
(Run "ez_setup.py -U setuptools" to reinstall or upgrade.)

Use

Example 1. Install a package by name, searching PyPI for the latest version, and automatically downloading, building, and installing it:

easy_install SQLObject

Example 2. Install or upgrade a package by name and version by finding links on a given "download page":

easy_install -f http://pythonpaste.org/package_index.html SQLObject

Example 3. Download a source distribution from a specified URL, automatically building and installing it:

easy_install http://example.com/path/to/MyPackage-1.2.3.tgz

Example 4. Install an already-downloaded .egg file:

easy_install /my_downloads/OtherPackage-3.2.1-py2.3.egg

Example 5. Upgrade an already-installed package to the latest version listed on PyPI:

easy_install --upgrade PyProtocols

Example 6. Install a source distribution that's already downloaded and extracted in the current directory (New in 0.5a9):

easy_install .

Example 7. (New in 0.6a1) Find a source distribution or Subversion checkout URL for a package, and extract it or check it out to ~/projects/sqlobject (the name will always be in all-lowercase), where it can be examined or edited. (The package will not be installed, but it can easily be installed with easy_install ~/projects/sqlobject. See Editing and Viewing Source Packages below for more info.):

easy_install --editable --build-directory ~/projects SQLObject

http://peak.telecommunity.com/DevCenter/EasyInstall

分享您的观点
个人工具
名字空间

变换
操作
导航
工具箱