I am running Mac OSX 10.9.5. I'm trying to use Enthought Canopy as my IDE, but want it to point to the Python distribution that I installed using Homebrew. I followed the instructions on this page, to no avail.
Here's what I did:
When I type 'which python' into Terminal, I get the following:
/usr/local/bin/python
Hence, I modified the 'launchd.conf' file to include the following:
setenv PYTHONPATH /usr/local/bin:/usr/local/sbin
The launchd.conf information appears to be going through, because when I type 'export', I get the following:
declare -x PATH="/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin"
declare -x PWD="/Users/***/.canopy"
declare -x PYTHONPATH="/usr/local/bin:/usr/local/sbin"
Any suggestions? Thanks!!
P.S. I don't know if it's relevant or not, but I have the below information in my ~/.canopy/locations.cfg file:
{'canopy_64bit-system': u'/Users/****/Documents/System', 'canopy_64bit-user': u'/Users/***/Documents/User'}
but want [Canopy] to point to the Python distribution that I installed using Homebrew.
You cannot do this safely. This is not supported yet. At the moment, the Canopy IDE is inseparably linked to the Python distribution on which it is based (with which it installs). Less fundamentally impossible but still fragile and not supported would be using PYTHONPATH to allow Canopy Python to import packages from inside your existing Python. If you want to share a module or package between several python distributions, keep the source of the package outside of any of the distributions, and install it into each of them separately.