「PIP」の版間の差分
ナビゲーションに移動
検索に移動
(同じ利用者による、間の3版が非表示) | |||
1行目: | 1行目: | ||
− | ==PIP== | + | ==[[PIP]]== |
− | [[Python]] | + | [[Python]] | |
{{amazon|4873113938}} | {{amazon|4873113938}} | ||
*[http://www.pip-installer.org/en/latest/ パッケージのインストールと管理ツール] | *[http://www.pip-installer.org/en/latest/ パッケージのインストールと管理ツール] | ||
====インストール==== | ====インストール==== | ||
− | *Python WindowsにPIPをインストール | + | *[[Python WindowsにPIPをインストール]] |
− | *CentOS6にPython2.7をインストール | + | *[[CentOS6にPython2.7をインストール]] |
====プロキシ経由の接続==== | ====プロキシ経由の接続==== | ||
pip install numpy --proxy=user@proxyhost:port | pip install numpy --proxy=user@proxyhost:port | ||
+ | |||
+ | |||
+ | ==venv環境でインストールパッケージの設定== | ||
+ | *確認 | ||
+ | <pre> | ||
+ | (env_song_dict) delhi:bin hirotoyagi$ pip freeze | ||
+ | beautifulsoup4==4.9.1 | ||
+ | soupsieve==2.0.1 | ||
+ | </pre> | ||
+ | *requirements.txtに書き出し | ||
+ | <pre> | ||
+ | (env_song_dict) delhi:bin hirotoyagi$ pip freeze > requirement.txt | ||
+ | </pre> | ||
+ | *他のvenv環境に取り込み | ||
+ | <pre> | ||
+ | (env_song_dict) piroto@jinmu:~/Workspaces/python/song_dict$ pip install -r requirements.txt | ||
+ | Collecting beautifulsoup4==4.9.1 | ||
+ | Downloading beautifulsoup4-4.9.1-py3-none-any.whl (115 kB) | ||
+ | |████████████████████████████████| 115 kB 4.4 MB/s | ||
+ | Collecting soupsieve==2.0.1 | ||
+ | Downloading soupsieve-2.0.1-py3-none-any.whl (32 kB) | ||
+ | Installing collected packages: soupsieve, beautifulsoup4 | ||
+ | Successfully installed beautifulsoup4-4.9.1 soupsieve-2.0.1 | ||
+ | </pre> |
2020年9月20日 (日) 02:38時点における最新版
PIP
Python |
インストール
プロキシ経由の接続
pip install numpy --proxy=user@proxyhost:port
venv環境でインストールパッケージの設定
- 確認
(env_song_dict) delhi:bin hirotoyagi$ pip freeze beautifulsoup4==4.9.1 soupsieve==2.0.1
- requirements.txtに書き出し
(env_song_dict) delhi:bin hirotoyagi$ pip freeze > requirement.txt
- 他のvenv環境に取り込み
(env_song_dict) piroto@jinmu:~/Workspaces/python/song_dict$ pip install -r requirements.txt Collecting beautifulsoup4==4.9.1 Downloading beautifulsoup4-4.9.1-py3-none-any.whl (115 kB) |████████████████████████████████| 115 kB 4.4 MB/s Collecting soupsieve==2.0.1 Downloading soupsieve-2.0.1-py3-none-any.whl (32 kB) Installing collected packages: soupsieve, beautifulsoup4 Successfully installed beautifulsoup4-4.9.1 soupsieve-2.0.1
© 2006 矢木浩人