I saw on the Internet that we should use pyenv
to avoid affecting the system Python. I know we can use pyenv-virtualenv
to create a virtual environment. However, Conda can also be used to create virtual environments. I'm confused up to this point. Should I install pyenv
and Miniconda separately, or should I install Miniconda under pyenv
?
Currently, I have installed pyenv and miniforge on my Mac with Homebrew. I mainly use Conda to create my virtual environments, but this makes pyenv seems kinda useless.
Edit:
So in the beginning, I also saw this post: What is the difference between pyenv, virtualenv, anaconda?, comparing the differences. I thought these two different things shoudl be used separately until I saw the github page of pyenv-virtualenv: https://github.com/pyenv/pyenv-virtualenv. In the last section, it says something like
You can manage conda environments by conda create as same manner as standard Anaconda/Miniconda installations. To use those environments, you can use pyenv activate and pyenv deactivate
People also mentioned conflicts between conda
and pyenv
. How can I install Anaconda aside an existing pyenv installation on OSX?. So I'm confused that if I should install conda under pyenv or install them separately.