Python easy_install

讓 Python 安裝模組變得很簡單。
以安裝 lxml 為例:

D:\>easy_install lxml
Searching for lxml
Best match: lxml 2.2.2
Processing lxml-2.2.2-py2.6-win32.egg
lxml 2.2.2 is already the active version in easy-install.pth

Using c:\python26\lib\site-packages\lxml-2.2.2-py2.6-win32.egg
Processing dependencies for lxml
Finished processing dependencies for lxml

升級 docutils

D:\>easy_install --upgrade docutils
Searching for docutils
Reading http://pypi.python.org/simple/docutils/
Reading http://docutils.sourceforge.net/
Best match: docutils 0.8.1
Downloading http://prdownloads.sourceforge.net/docutils/docutils-0.8.1.tar.gz?do
wnload
Processing docutils-0.8.1.tar.gz
Running docutils-0.8.1\setup.py -q bdist_egg --dist-dir c:\users\daniel.lin\appdata\local\temp\easy_install-ylkkgr\docutils-0.8.1\egg-dist-tmp-vfxzir
"roman" module already present; ignoring extras/roman.py.
warning: no files found matching 'MANIFEST'
warning: no previously-included files matching '.cvsignore' found under director y '*'
warning: no previously-included files matching '*.pyc' found under directory '*' 
warning: no previously-included files matching '*~' found under directory '*'
warning: no previously-included files matching '.DS_Store' found under directory  '*'
zip_safe flag not set; analyzing archive contents...
docutils.parsers.rst.directives.misc: module references __file__
docutils.writers.html4css1.__init__: module references __file__
docutils.writers.latex2e.__init__: module references __file__
docutils.writers.odf_odt.__init__: module references __file__
docutils.writers.pep_html.__init__: module references __file__
docutils.writers.s5_html.__init__: module references __file__
Adding docutils 0.8.1 to easy-install.pth file
Installing rst2html.py script to C:\Python26\Scripts
Installing rst2latex.py script to C:\Python26\Scripts
Installing rst2man.py script to C:\Python26\Scripts
Installing rst2odt.py script to C:\Python26\Scripts
Installing rst2odt_prepstyles.py script to C:\Python26\Scripts
Installing rst2pseudoxml.py script to C:\Python26\Scripts
Installing rst2s5.py script to C:\Python26\Scripts
Installing rst2xetex.py script to C:\Python26\Scripts
Installing rst2xml.py script to C:\Python26\Scripts
Installing rstpep2html.py script to C:\Python26\Scripts

Installed c:\python26\lib\site-packages\docutils-0.8.1-py2.6.egg
Processing dependencies for docutils
Finished processing dependencies for docutils

安裝 sphinx

D:\>easy_install sphinx
Searching for sphinx
Best match: sphinx 1.1
Processing sphinx-1.1-py2.6.egg
sphinx 1.1 is already the active version in easy-install.pth
Installing sphinx-apidoc-script.py script to C:\Python26\Scripts
Installing sphinx-apidoc.exe script to C:\Python26\Scripts
Installing sphinx-apidoc.exe.manifest script to C:\Python26\Scripts
Installing sphinx-build-script.py script to C:\Python26\Scripts
Installing sphinx-build.exe script to C:\Python26\Scripts
Installing sphinx-build.exe.manifest script to C:\Python26\Scripts
Installing sphinx-quickstart-script.py script to C:\Python26\Scripts
Installing sphinx-quickstart.exe script to C:\Python26\Scripts
Installing sphinx-quickstart.exe.manifest script to C:\Python26\Scripts
Installing sphinx-autogen-script.py script to C:\Python26\Scripts
Installing sphinx-autogen.exe script to C:\Python26\Scripts
Installing sphinx-autogen.exe.manifest script to C:\Python26\Scripts

Using c:\python26\lib\site-packages\sphinx-1.1-py2.6.egg
Processing dependencies for sphinx
Finished processing dependencies for sphinx

官方網站:http://peak.telecommunity.com/DevCenter/EasyInstall

0 意見 :: Python easy_install

張貼留言