差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン 次のリビジョン両方とも次のリビジョン | ||
python:pip [2019/08/19 07:26] – ともやん | python:pip [2021/05/10 04:14] – ともやん | ||
---|---|---|---|
行 19: | 行 19: | ||
<WRAP #pip> | <WRAP #pip> | ||
^ コマンド | ^ コマンド | ||
+ | |< | ||
|< | |< | ||
|< | |< | ||
行 33: | 行 34: | ||
|< | |< | ||
</ | </ | ||
+ | |||
+ | ===== pip のヘルプ ===== | ||
+ | <WRAP prewrap 100%> | ||
+ | < | ||
+ | $ pip -h | ||
+ | </ | ||
+ | </ | ||
+ | <WRAP prewrap 100% # | ||
+ | < | ||
+ | |||
+ | Usage: | ||
+ | pip < | ||
+ | |||
+ | Commands: | ||
+ | install | ||
+ | download | ||
+ | uninstall | ||
+ | freeze | ||
+ | list List installed packages. | ||
+ | show Show information about installed packages. | ||
+ | check | ||
+ | config | ||
+ | search | ||
+ | wheel Build wheels from your requirements. | ||
+ | hash Compute hashes of package archives. | ||
+ | completion | ||
+ | help Show help for commands. | ||
+ | |||
+ | General Options: | ||
+ | -h, --help | ||
+ | --isolated | ||
+ | configuration. | ||
+ | -v, --verbose | ||
+ | -V, --version | ||
+ | -q, --quiet | ||
+ | (corresponding to WARNING, ERROR, and CRITICAL logging levels). | ||
+ | --log < | ||
+ | --proxy < | ||
+ | --retries < | ||
+ | times). | ||
+ | --timeout < | ||
+ | --exists-action < | ||
+ | (w)ipe, (b)ackup, (a)bort). | ||
+ | --trusted-host < | ||
+ | HTTPS. | ||
+ | --cert < | ||
+ | --client-cert < | ||
+ | key and the certificate in PEM format. | ||
+ | --cache-dir < | ||
+ | --no-cache-dir | ||
+ | --disable-pip-version-check | ||
+ | Don't periodically check PyPI to determine whether a new version of | ||
+ | pip is available for download. Implied with --no-index. | ||
+ | --no-color | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ===== pip アップデート警告が出たら ===== | ||
+ | **pip install <package name>** の実行で以下の警告が表示されたら...\\ | ||
+ | < | ||
+ | WARNING: You are using pip version 19.2.3, however version 20.0.2 is available. | ||
+ | You should consider upgrading via the ' | ||
+ | </ | ||
+ | pip を更新する。\\ | ||
+ | < | ||
+ | $ python -m pip install --upgrade pip | ||
+ | Collecting pip | ||
+ | Downloading https:// | ||
+ | | ||
+ | Installing collected packages: pip | ||
+ | Found existing installation: | ||
+ | Uninstalling pip-19.2.3: | ||
+ | Successfully uninstalled pip-19.2.3 | ||
+ | Successfully installed pip-20.0.2 | ||
+ | </ | ||
===== venv などの環境を複製 ===== | ===== venv などの環境を複製 ===== | ||
行 74: | 行 150: | ||
<file python pip_downloader.py> | <file python pip_downloader.py> | ||
# | # | ||
- | ## -*- coding: utf-8 -*- | + | # -*- coding: utf-8 -*- |
import cgi | import cgi | ||
import mimetypes | import mimetypes |