差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン 次のリビジョン両方とも次のリビジョン | ||
python:easy_install [2014/03/08 21:05] – [Windows編] ともやん | python:easy_install [2019/03/01 23:12] – ともやん | ||
---|---|---|---|
行 1: | 行 1: | ||
- | <ifauth !@LoggedinUsers>< | + | <ifauth !@loggedinusers>< |
<script async src="// | <script async src="// | ||
- | <!-- big-barner --> | ||
- | <ins class=" | ||
- | | ||
- | | ||
- | | ||
< | < | ||
- | (adsbygoogle = window.adsbygoogle || []).push({}); | + | (adsbygoogle = window.adsbygoogle || []).push({ |
+ | google_ad_client: | ||
+ | enable_page_level_ads: | ||
+ | }); | ||
</ | </ | ||
</ | </ | ||
- | |||
====== easy_install、setuptools、pip - パッケージ管理 ====== | ====== easy_install、setuptools、pip - パッケージ管理 ====== | ||
+ | |||
+ | ===== 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/ | ||
+ | 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 http://peak.telecommunity.com/dist/ | + | $ curl -O https://bitbucket.org/ |
% Total % Received % Xferd Average Speed | % Total % Received % Xferd Average Speed | ||
| | ||
- | 100 10240 | + | 100 11432 |
</ | </ | ||
- インストールする。< | - インストールする。< | ||
$ sudo python ez_setup.py | $ sudo python ez_setup.py | ||
- | Downloading | + | Downloading |
- | Processing setuptools-0.6c11-py2.7.egg | + | Extracting in /tmp/tmpbV8DKr |
- | Copying setuptools-0.6c11-py2.7.egg to /Library/Frameworks/Python.framework/Versions/2.7/ | + | Now working in /tmp/tmpbV8DKr/ |
- | Adding | + | Installing |
- | Installing | + | running install |
- | Installing easy_install-2.7 script to / | + | running bdist_egg |
- | + | running egg_info | |
- | Installed / | + | ~省略~ |
- | Processing dependencies for setuptools==0.6c11 | + | Processing dependencies for setuptools==17.0 |
- | Finished processing dependencies for setuptools==0.6c11 | + | Finished processing dependencies for setuptools==17.0 |
</ | </ | ||
- easy_install の動作確認をする。< | - easy_install の動作確認をする。< | ||
行 89: | 行 119: | ||
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で導入する場合は、以下のコマンドで行うことができる。 | ||
行 113: | 行 134: | ||
$ 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 を実行してインストールを行う。< | ||
行 152: | 行 175: | ||
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 ' | ||
行 174: | 行 197: | ||
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 を以下のように設定する。\\ | ||
行 194: | 行 208: | ||
set HTTP_PROXY=http:// | set HTTP_PROXY=http:// | ||
</ | </ | ||
+ | |||
===== NTLM認証Proxyサーバ(ntlmaps)を利用する方法(Windows編) ===== | ===== NTLM認証Proxyサーバ(ntlmaps)を利用する方法(Windows編) ===== | ||
NTLM認証Proxyサーバを経由してインストールを行う場合は、以下の手順にて行う。 | NTLM認証Proxyサーバを経由してインストールを行う場合は、以下の手順にて行う。 | ||
行 202: | 行 217: | ||
PARENT_PROXY: | PARENT_PROXY: | ||
NT_DOMAIN: | NT_DOMAIN: | ||
- | USER: | + | USER: |
PASSWORD: | PASSWORD: | ||
</ | </ | ||
行 218: | 行 233: | ||
</ | </ | ||
- | <ifauth !@LoggedinUsers>< | ||
- | <script async src="// | ||
- | <!-- big-barner --> | ||
- | <ins class=" | ||
- | | ||
- | | ||
- | | ||
- | < | ||
- | (adsbygoogle = window.adsbygoogle || []).push({}); | ||
- | </ | ||
- | </ |