Viewed   5.5k times

I've installed Miniconda and have added the environment variable export PATH="/home/username/miniconda3/bin:$PATH" to my .bachrc and .bash_profile but still can't run any conda commands in my terminal.

Am I missing another setup? I'm using zsh by the way.

 Answers

1

If you're using zsh and it has not been set up to read .bashrc, you need to add the Miniconda directory to the zsh shell PATH environment variable. Add this to your .zshrc:

export PATH="/home/username/miniconda/bin:$PATH"

Make sure to replace /home/username/miniconda with your actual path.

Save, exit the terminal and then reopen the terminal. conda command should work.

Sunday, August 21, 2022
1

The difference is that miniconda is just shipping the repository management system. So when you install it there is just the management system without packages. Whereas with Anaconda, it is like a distribution with some built in packages.

Like with any Linux distribution, there are some releases which bundles lots of updates for the included packages. That is why there is a difference in version numbering. If you only decide to upgrade Anaconda, you are updating a whole system.

Thursday, August 18, 2022
4

With the release of Express 4.0.0 it looks like you need to do sudo npm install -g express-generator.

Monday, September 5, 2022
 
4

It appears that my PATH is broken in my .zshrc file.

Open it and add :

export PATH="$PATH;/Users/Dz/anaconda/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Users/Dz/.rvm/bin"

Doh! Well that would explain everything. How did I miss that little semicolon? Changed:

export PATH="$PATH:/Users/Dz/anaconda/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Users/Dz/.rvm/bin"

source ~/.zshrc
echo $HOME
echo $PATH

We're good now.

Saturday, August 20, 2022
 
5

can be achieved by bash miniconda.sh -b (thanks @darthbith)

The command line usage for this can only be seen with -h flag but not --help, so I missed it.

To install the anaconda to another place, use the -p option:

bash anaconda.sh -b -p /some/path
Friday, November 4, 2022
 
knight
 
Only authorized users can answer the search term. Please sign in first, or register a free account.
Not the answer you're looking for? Browse other questions tagged :