Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Brew command not found after installing Anaconda Python

After installing Anaconda, "~/anaconda/bin" was added to the $PATH variable. But now, I cannot run "brew":

-bash: brew: command not found

Only if I add "/usr/local/bin:/usr/local/sbin" to the beginning of $PATH can I get brew to work, but then I don't have the Anaconda python installation.

How can I have a default Anaconda python and and operational homebrew?

like image 308
BolzanoW Avatar asked Jun 27 '26 20:06

BolzanoW


1 Answers

I think the problem is that your PATH is now mis-configured. What is your PATH and also the contents of .bash_profile? Ensure that you can access both via PATH with any mods in .bash_profile.

Also, I am wondering how many versions of Python you have installed? If the Anaconda installation came with a version of Python, then perhaps the version that homebrew installed should be uninstalled.

See Is path broken for anaconda ipython? and How to modify PATH for Homebrew?

like image 131
harymitchell Avatar answered Jun 30 '26 10:06

harymitchell



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!