easy install

提供: Python入門
移動: 案内検索
スポンサーリンク

easy_install とは、setuptoolsで提供されるPythonモジュールのパッケージ管理システムです。easy_installの後継のpipを利用しましょう。

読み方

easy_install
いーじーいんすとーる

概要

easy_installで簡単にpythonのモジュールパッケージをインストールできます。

インストール

FreeBSD

setuptools 3.4

$ sudo pkg install py34-setuptools

setuptools 3.3

$ sudo pkg install py33-setuptools

setuptools 3.2

$ sudo pkg install py32-setuptools

setuptools 2.7

$ sudo pkg install py27-setuptools

Ubuntu

$ sudo apt install python-setuptools

ソースコード

 

実行例

コマンドラインオプション

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
  --no-user-cfg   ignore pydistutils.cfg in your home directory
 
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
  --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
  --version                  print version information and exit
  --no-find-links            Don't load find-links defined in packages being
                             installed
  --user                     install in user site-package
                             '/home/kaworu/.local/lib/python2.7/site-packages'
 
usage: easy_install [options] requirement_or_url ...
   or: easy_install --help

パッケージのインストール

$ sudo easy_install -U pip

パッケージのアップデート

$ sudo easy_install --upgrade SomePackage

関連項目




スポンサーリンク