Home > Blockchain >  Terminal Has Two Environments in Parentheses
Terminal Has Two Environments in Parentheses

Time:09-21

Fairly new to coding. While trying to set up Google Colab so I could access a ton of large jpgs for a CNN, I was running into problems. In my flustered state I tried to follow a now-forgotten website's advice. It did not work. But what did happen was now my terminal has two virtual environments (I think) listed one after the other. I'm on a macbook pro, using Zsh.

(firstEnv) (myenv) johndoe~$

I would prefer to revert back to having just my virtual environment

(firstEnv) johndoe~$

I tried:

conda deactivate myenv

but nothing changes

I've spent hours now, googling and can't find an answer. Appreciate any help.

CodePudding user response:

If you've made non-persistent changes to your shell environment inside a Terminal window, then you can discard those changes by simply closing that window and opening a new one.

If persistent changes were made then they would have been effected by updating one or more files, (probably) in your home directory. For Zsh, these would be one or more of .zshenv, .zprofile, .zshrc, and .zlogin.

  • Related