Return to site

Anaconda python for mac

broken image
broken image
broken image

Running Conda PythonĪs previously noted, you have to call source activate p圓6 when you want to use the conda virtual environment. You will run Mac python by default at the command line. Default Python SetupĪfter moving the Anaconda path to the end of your PATH environment variable, you can validate that which python references /usr/bin/python, the location for Mac Python. I am not a fan of manipulating system-level resources for solutions that can be done with user resources (directories). Also, this setup does not require symlinks in /usr/local/bin. Resolution order should check that directory first assuming it's first in the PATH. This solution assumes you have /usr/bin/ (where Mac Python is) already in your PATH. export PATH='$PATH:/Users/omidb/anaconda/bin' This should allow you to use the Mac Python as the default and only use Anaconda Python after calling source activate p圓6. You need to add/move the conda path to the end of your PATH environment via export command. After testing this, I feel it's appropriate to offer this as a simple solution for using Mac Python as the default and only using Conda Python when desired.