Skip to content

Instantly share code, notes, and snippets.

@satomacoto
Last active October 20, 2024 02:23
Show Gist options
  • Save satomacoto/5a73b5e2cb6b5dec379d to your computer and use it in GitHub Desktop.
Save satomacoto/5a73b5e2cb6b5dec379d to your computer and use it in GitHub Desktop.
Install pyenv and conda

Install pyenv

$ brew update
$ brew install pyenv

Check available versions and install

$ pyenv install -l
$ pyenv install miniconda3-latest
$ cd /path/to
$ pyenv local miniconda3-latest

Create a conda environment

$ conda create -n foo anaconda

Activate the environment

$ source /usr/local/var/pyenv/versions/miniconda3-latest/envs/foo/bin/activate foo

Remove the environment

$ conda-env remove -n foo
@gpetrousov
Copy link

Short and straight to the point, thanks!

@eztinkerdreams
Copy link

thanks!

@joethesaint
Copy link

Personal recommendation: Don't use pyenv to install Anaconda or Miniconda. Both pyenv and conda are able to manage different python environments.

https://stackoverflow.com/questions/58044214/installing-anaconda-with-pyenv-unable-to-configure-virtual-environment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment