欢迎大家赞助一杯啤酒🍺 我们准备了下酒菜:Formal mathematics/Isabelle/ML, Formal verification/Coq/ACL2/Agda, C++/Lisp/Haskell
Easy install
| (未显示1个用户的1个中间版本) | |||
| 第1行: | 第1行: | ||
| + | {{SeeWikipedia}} | ||
| + | |||
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 | 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 | ||
| + | |||
| + | [[Category:Python]] | ||
| + | [[Category:Package]] | ||
2010年9月20日 (一) 09:15的最后版本
| |
您可以在Wikipedia上了解到此条目的英文信息 Easy install Thanks, Wikipedia. |
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