差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン最新のリビジョン両方とも次のリビジョン | ||
python:pythonbrew [2016/01/24 07:12] – [インストール (Linux & Mac編)] ともやん | python:pythonbrew [2019/07/27 04:36] – ともやん | ||
---|---|---|---|
行 1: | 行 1: | ||
+ | <ifauth !@loggedinusers>< | ||
+ | <script async src="// | ||
+ | < | ||
+ | | ||
+ | google_ad_client: | ||
+ | enable_page_level_ads: | ||
+ | }); | ||
+ | </ | ||
====== pythonbrew の使い方 ====== | ====== pythonbrew の使い方 ====== | ||
行 18: | 行 26: | ||
$ mkdir ~/work | $ mkdir ~/work | ||
$ cd ~/work | $ cd ~/work | ||
- | $ curl -O http:// | + | $ curl -O http:// |
- | $ sudo yum-builddep ~/work/python-2.7.10-8.fc23.src.rpm | + | $ sudo yum-builddep ~/work/python2-2.7.13-17.fc27.src.rpm |
</ | </ | ||
\\ | \\ | ||
行 61: | 行 69: | ||
===== 使い方 ===== | ===== 使い方 ===== | ||
- | ^ Python環境関連 ^^ | + | ^ Pythonbrew 関連 ^^ |
+ | ^コマンド | ||
+ | | pybrew update | ||
+ | ^ Python 環境関連 ^^ | ||
^コマンド | ^コマンド | ||
| pybrew install 2.7.10 | | pybrew install 2.7.10 | ||
行 201: | 行 212: | ||
Python x.x.x | Python x.x.x | ||
</ | </ | ||
+ | ===== メモ ===== | ||
+ | pythonbrew は $HOME/ | ||
+ | ビルドした python は pythons に Python-[バージョン]の形式で格納される。\\ | ||
+ | venv create した python は venvs Python-[バージョン]/ | ||
+ | < | ||
+ | $ mkdir .pythonbrew/ | ||
+ | $ mkdir .pythonbrew/ | ||
+ | $ cd .pythonbrew/ | ||
+ | $ virtualenv -p / | ||
+ | </ | ||
+ | すると | ||
+ | < | ||
+ | $ pybrew venv use py27dj110 | ||
+ | </ | ||
+ | できる。 | ||
===== トラブルシューティング ===== | ===== トラブルシューティング ===== | ||