python easy install工具安裝

2021-06-03 20:43:54 字數 2264 閱讀 5480

在安裝python第三方類庫時,python提供了乙個類似於yum的命令easy_install,但是系統一般都是不會自帶easy_install命令的,故將easy_install命令的安裝方法介紹如下:

wget
2)安裝setuptools

sh setuptools-0.6c11-py2.4.egg
3)測試easy_install命令

[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

--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安裝及使用

easy install簡介 easy install實際上是在呼叫setuptools來完成安裝模組的工作。setuptools簡介 經常接觸python的同學可能會注意到,當需要安裝第三方python包時,可能會用到easy install命令。easy install開發的setuptools...

Protocol Buffers 編譯工具安裝

作業系統 osx 語言環境 golang 解壓後 將bin下面的protoc檔案拷貝到 gopath下,gopath已經在path下,保證protoc在path下即可 我放在這裡,which protoc users macbook go bin protoc 然後,將include複製到 gopa...

安卓工具類 FileUtils

public class minefileutils file file new file filepath intent.addflags intent.flag activity new task 設定標記 intent.addflags intent.flag grant read uri p...