Skip to content

Instantly share code, notes, and snippets.

@th1nkd0g
Last active January 3, 2018 13:21
Show Gist options
  • Save th1nkd0g/6040691ce8fff124b23790d69e805751 to your computer and use it in GitHub Desktop.
Save th1nkd0g/6040691ce8fff124b23790d69e805751 to your computer and use it in GitHub Desktop.
[Python] Anacondaとpyenvとvirtualenvと.bash_profileと ref: https://qiita.com/th1nkd0g/items/d33a9be75098571cad72
$echo 'export PYENV_ROOT="${HOME}/.pyenv"' >> ~/.bash_profile
$echo 'export PATH="${PYENV_ROOT}/bin:$PATH"' >> ~/.bash_profile
$echo 'eval "$(pyenv init -)"' >> ~/.bash_profile
$pyenv install [python_version]
$pyenv install [another_python_version]
$pyenv global [python_version]
$pyenv local [python_version]
$brew install pyenv
$brew install pyenv-virtualenv
$pyenv activate [virtualenv_name]
$pyenv uninstall [virtualenv_name]
$pyenv virtualenv [python_version] [virtualenv_name]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment