Setup/Manage python environments in Mac

There are 3 steps

a. Install pyenv-virtualenv
b. Create an environment
c. Switch to the new environment

1. Install

You can install it using:

$brew install pyenv pyenv-virtualenv

2. To see the list of python versions you already have.
$pyenv versions

2. Create an Environment

$pyenv virtualenv 3.8.0 env1

3. Switch

$pyenv activate env1

--

--

I write about firebase, Dialogflow, Python and Data Science

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store