Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Zsh: Conda/Pip installs command not found

So I installed Anaconda and everything is working. After I installed it I decided to switch to oh-my-zsh. I am now getting:

zsh: command not found: conda 

when trying to use pip or conda installs

echo $ZSH_VERSION 

5.0.5

I have added to my zshenv.sh

export PATH ="/Users/Dz/anaconda/bin:$PATH" 

What is it that I'm missing?

like image 825
Architek1 Avatar asked Jul 24 '15 16:07

Architek1


People also ask

Can I install conda with PIP?

You can install pip in the current conda environment with the command conda install pip , as discussed in Using pip in an environment. If there are instances of pip installed both inside and outside the current conda environment, the instance of pip installed inside the current conda environment is used.

How do I add a command to zsh?

On Ubuntu-based distros, you can install zsh using: sudo apt-get install zsh . Once the installation completes, you can check the version using zsh --version , then make zsh your default shell using chsh -s $(which zsh) . You'll need to log out, then log back in for the changes to take effect.


1 Answers

I found an easy way. Just follow below steps:

  1. in terminal, enter vim ~/.zshrc enter image description here
  2. add source ~/.bash_profile into .zshrc file enter image description here
  3. and then in terminal, enter source ~/.zshrc enter image description here

Congratulation for you!!! ㊗️ 🎉🎉🎉

like image 97
Benchur Wong Avatar answered Sep 17 '22 23:09

Benchur Wong