Marc
Marc

Reputation: 601

Switch from Pyenv to Conda

I've been using pyenv but I want to switch to Conda. I use VScode, managed to create a Conda environment and use the proper version of Python but when installing packages with PIP, they still install on pyenv and not conda, how do I change that? Should I just remove pyenv from my computer or can I just change the path for pip?

Not sure if that'll help but I did an echo $PATH and got this list /opt/homebrew/Caskroom/miniforge/base/condabin:/Users/marc/.pyenv/shims:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

Upvotes: 1

Views: 567

Answers (1)

Joseph
Joseph

Reputation: 141

Marc, it is not clear from your question whether you've configured conda correctly for VS Code, which means

  1. setting the default terminal
  2. ensuring the default terminal is correctly reading ~/.profile args
  3. ensuring you can select your miniforge conda env from list of python interpreters.

More details about ensuring conda is configured properly is in this related stackoverflow post.

Finally, please ensure that you pip install inside the activated conda env? This is obvious.... for sanity sake ensure you can see the env activated at the shell prompt inside your VSCode terminal before doing pip / conda install commands. Running which pip at the prompt should confirm that you are using pip inside the miniforge path.

Upvotes: 0

Related Questions