Pyenv and pipenv on mac
Install pyenv
https://github.com/pyenv/pyenv
brew install pyenv
Then in ~/.zshrc
add
eval "$(pyenv init -)"
Run
source ~/.zshrc
and then
pyenv install 3.7.7
Finally in ~/.zshrc
add:
pyenv global 3.7.7
Installation of pyenv-virtualenvwrapper
https://github.com/pyenv/pyenv-virtualenvwrapper
brew install pyenv-virtualenvwrapper
To ~/.zshrc
add
pyenv virtualenvwrapper
after eval "$(pyenv init -)"
Install pipenv
brew install pipenv
Then, inside a project, you can start using pipenv
with
pipenv install
and use it with
pipenv shell
It will create virtualenv if does not exists specific for a project.
ohmyzsh
If you use Oh My Zsh you can add plugin by
plugins=(... pipenv virtualenv ...)
Updated: 2020-05-06