差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
| python:easy_install [2017/03/08 19:53] – [easy_install、setuptools、pip - パッケージ管理] ともやん | python:easy_install [2019/08/19 06:58] (現在) – ともやん | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| - | <ifauth !@loggedinusers>< | ||
| - | <script async src="// | ||
| - | <!-- big-barner --> | ||
| - | <ins class=" | ||
| - | | ||
| - | | ||
| - | | ||
| - | < | ||
| - | (adsbygoogle = window.adsbygoogle || []).push({}); | ||
| - | </ | ||
| - | </ | ||
| - | |||
| ====== easy_install、setuptools、pip - パッケージ管理 ====== | ====== easy_install、setuptools、pip - パッケージ管理 ====== | ||
| - | ===== Linux & MAC (get-pip.pyの場合) ===== | + | ===== Linux & Mac 編(get-pip.pyの場合) ===== |
| + | < | ||
| + | $ curl -O https:// | ||
| + | % Total % Received % Xferd Average Speed | ||
| + | | ||
| + | 100 1558k 100 1558k 0 | ||
| + | </ | ||
| + | < | ||
| + | $ sudo python get-pip.py | ||
| + | Collecting pip | ||
| + | Downloading pip-9.0.1-py2.py3-none-any.whl (1.3MB) | ||
| + | 100% |████████████████████████████████| 1.3MB 913kB/s | ||
| + | Collecting setuptools | ||
| + | Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB) | ||
| + | 100% |████████████████████████████████| 399kB 2.1MB/s | ||
| + | 〜省略〜 | ||
| + | Installing collected packages: pip, six, appdirs, pyparsing, packaging, setuptools, wheel | ||
| + | Successfully installed appdirs-1.4.3 packaging-16.8 pip-9.0.1 pyparsing-2.2.0 setuptools-34.3.1 six-1.10.0 wheel-0.29.0 | ||
| + | </ | ||
| + | < | ||
| + | $ pip --version | ||
| + | pip 9.0.1 from / | ||
| + | </ | ||
| + | < | ||
| + | $ easy_install --help | ||
| + | |||
| + | Global options: | ||
| + | --verbose (-v) run verbosely (default) | ||
| + | --quiet (-q) run quietly (turns verbosity off) | ||
| + | 〜省略〜 | ||
| + | </ | ||
| ===== Linux & Mac 編(ez_setup.pyの場合) ===== | ===== Linux & Mac 編(ez_setup.pyの場合) ===== | ||
| + | <WRAP prewrap 100%> | ||
| - ez_setup.py をダウンロード。< | - ez_setup.py をダウンロード。< | ||
| $ curl -O https:// | $ curl -O https:// | ||
| 行 91: | 行 110: | ||
| pip 1.1 from / | pip 1.1 from / | ||
| </ | </ | ||
| + | </ | ||
| - | <ifauth !@loggedinusers>< | ||
| - | <script async src="// | ||
| - | <ins class=" | ||
| - | | ||
| - | | ||
| - | | ||
| - | < | ||
| - | (adsbygoogle = window.adsbygoogle || []).push({}); | ||
| - | </ | ||
| - | </ | ||
| ===== Linux編(yumの場合) ===== | ===== Linux編(yumの場合) ===== | ||
| yumで導入する場合は、以下のコマンドで行うことができる。 | yumで導入する場合は、以下のコマンドで行うことができる。 | ||
| 行 115: | 行 125: | ||
| $ sudo apt-get install python-pip | $ sudo apt-get install python-pip | ||
| </ | </ | ||
| + | |||
| ===== Windows編 ===== | ===== Windows編 ===== | ||
| + | <WRAP prewrap 100%> | ||
| - [[http:// | - [[http:// | ||
| - ダウンロードした ez_setup.py を実行してインストールを行う。< | - ダウンロードした ez_setup.py を実行してインストールを行う。< | ||
| 行 154: | 行 166: | ||
| dc69d76734568a6c040508 | dc69d76734568a6c040508 | ||
| Processing pip-1.1.tar.gz | Processing pip-1.1.tar.gz | ||
| - | Running pip-1.1\setup.py -q bdist_egg --dist-dir c:\users\nakayama\appdata\local\temp\ | + | Running pip-1.1\setup.py -q bdist_egg --dist-dir c:\users\tomoyan\appdata\local\temp\ |
| easy_install-oqpnzh\pip-1.1\egg-dist-tmp-9on5uw | easy_install-oqpnzh\pip-1.1\egg-dist-tmp-9on5uw | ||
| warning: no files found matching ' | warning: no files found matching ' | ||
| 行 176: | 行 188: | ||
| pip 1.1 from c: | pip 1.1 from c: | ||
| </ | </ | ||
| + | </ | ||
| - | <ifauth !@loggedinusers>< | ||
| - | <script async src="// | ||
| - | <ins class=" | ||
| - | | ||
| - | | ||
| - | | ||
| - | < | ||
| - | (adsbygoogle = window.adsbygoogle || []).push({}); | ||
| - | </ | ||
| - | </ | ||
| ===== easy_install でProxyサーバを利用する方法(Windows編) ===== | ===== easy_install でProxyサーバを利用する方法(Windows編) ===== | ||
| easy_install が利用する urllib2 に Proxy の設定を教えるためには、環境変数 HTTP_PROXY を以下のように設定する。\\ | easy_install が利用する urllib2 に Proxy の設定を教えるためには、環境変数 HTTP_PROXY を以下のように設定する。\\ | ||
| 行 196: | 行 199: | ||
| set HTTP_PROXY=http:// | set HTTP_PROXY=http:// | ||
| </ | </ | ||
| + | |||
| ===== NTLM認証Proxyサーバ(ntlmaps)を利用する方法(Windows編) ===== | ===== NTLM認証Proxyサーバ(ntlmaps)を利用する方法(Windows編) ===== | ||
| NTLM認証Proxyサーバを経由してインストールを行う場合は、以下の手順にて行う。 | NTLM認証Proxyサーバを経由してインストールを行う場合は、以下の手順にて行う。 | ||
| 行 204: | 行 208: | ||
| PARENT_PROXY: | PARENT_PROXY: | ||
| NT_DOMAIN: | NT_DOMAIN: | ||
| - | USER: | + | USER: |
| PASSWORD: | PASSWORD: | ||
| </ | </ | ||
| 行 220: | 行 224: | ||
| </ | </ | ||
| - | <ifauth !@loggedinusers>< | ||
| - | <script async src="// | ||
| - | <!-- big-barner --> | ||
| - | <ins class=" | ||
| - | | ||
| - | | ||
| - | | ||
| - | < | ||
| - | (adsbygoogle = window.adsbygoogle || []).push({}); | ||
| - | </ | ||
| - | </ | ||