差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン 次のリビジョン両方とも次のリビジョン | ||
python:beautifulsoup [2019/08/19 06:46] – ともやん | python:beautifulsoup [2020/04/29 08:00] – [Python 仮想環境] ともやん | ||
---|---|---|---|
行 1: | 行 1: | ||
+ | < | ||
+ | < | ||
+ | #result pre, #mincode pre { | ||
+ | overflow: scroll; | ||
+ | overflow-x: hidden; | ||
+ | font-size: 10px; | ||
+ | } | ||
+ | # | ||
+ | height: 400px; | ||
+ | overflow: scroll; | ||
+ | overflow-x: hidden; | ||
+ | font-size: 10px; | ||
+ | } | ||
+ | #logo { | ||
+ | background-color: | ||
+ | padding: 10px; | ||
+ | width: fit-content; | ||
+ | } | ||
+ | #logo p { | ||
+ | margin: 0; | ||
+ | } | ||
+ | </ | ||
+ | </ | ||
====== BeautifulSoup のインストール ====== | ====== BeautifulSoup のインストール ====== | ||
+ | |||
+ | ===== Python 仮想環境 ===== | ||
+ | Python バージョン確認\\ | ||
+ | < | ||
+ | $ python -VV | ||
+ | </ | ||
+ | <WRAP prewrap 100% #result> | ||
+ | < | ||
+ | Python 3.7.7 (default, Mar 13 2020, 10:23:39) | ||
+ | [GCC 9.2.1 20190827 (Red Hat 9.2.1-1)] | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | Python 仮想環境の作成\\ | ||
+ | < | ||
+ | $ python -m venv py3_scraping | ||
+ | </ | ||
+ | <WRAP prewrap 100% #result> | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | Python 仮想環境の有効化\\ | ||
+ | < | ||
+ | $ . py3_scraping/ | ||
+ | </ | ||
+ | <WRAP prewrap 100% #result> | ||
+ | < | ||
+ | (py3_scraping) $ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | Python 仮想環境の pip を更新\\ | ||
+ | < | ||
+ | (py3_scraping) $ python -m pip install --upgrade pip | ||
+ | </ | ||
+ | <WRAP prewrap 100% #result> | ||
+ | < | ||
+ | Collecting pip | ||
+ | Downloading https:// | ||
+ | | ||
+ | Installing collected packages: pip | ||
+ | Found existing installation: | ||
+ | Uninstalling pip-19.1.1: | ||
+ | Successfully uninstalled pip-19.1.1 | ||
+ | Successfully installed pip-20.1 | ||
+ | </ | ||
+ | </ | ||
===== インストール ===== | ===== インストール ===== |