差分

提供: fukudat.net
ナビゲーションに移動検索に移動
215 バイト追加 、 2021年8月12日 (木) 01:41
pythonの実行環境を制御するコマンド.システム全体 (global) に使用するバージョンと,個別のディレクトリ (local) に使用するバージョンを設定・変更することができる.
=== Install by brew ===<pre>$ brew install pyenv-virtualenv</pre>
=== Install by git ===
<pre>
$ brew install git clone https://github.com/pyenv/pyenv.git ~/.pyenv$ git clone https://github.com/pyenv/pyenv-virtualenv.git ~/.pyenv/plugins/pyenv-virtualenv
</pre>
=== Configure ===PATHを設定するために,~/.bash_profile or ~/.zprofile に以下を追加.
<pre>
export PYENV_ROOT=${HOME}/.pyenv
if [ -d "${PYENV_ROOT}" ]; then
export PATH=eval "${PYENV_ROOT}/shims:$PATH(pyenv init --path)"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"

案内メニュー