How do you set the python interpreter BBEdit uses?

185 views
Skip to first unread message

leecreighton

unread,
Mar 11, 2020, 6:06:02 PM3/11/20
to BBEdit Talk
Apparently I've got a couple of python interpreters installed (notably one at /usr/local/bin and one at /opt/anaconda3/bin and maybe others). They don't have identical modules installed so I get errors when I run in BBEdit vs when I run in IDLE or python terminal.

I'd loke to point BBEdit to the anaconda3 version, but I can't find a preference for it. Anyone know?

lc

Rick Yentzer

unread,
Mar 11, 2020, 6:48:51 PM3/11/20
to BBEdit Talk
It's been a while since I've focused on Python but, according I found this in the manual on page 335:

Locating Unix tools via PATH
When locating Unix tools for various purposes, BBEdit will honor your account’s PATH environment variable (provided it is available and not empty). This should result in more predictable outcomes when using aftermarket installations of open-source tools as well as for alternative installations of tools included with the system (such as Python).

If you modify your PATH, you must quit and relaunch BBEdit for those changes to take effect. Note also that if your PATH contains entries relative to the current working directory, those entries are not likely to work since $PWD is undefined for a GUI application, though absolute paths will work.

Hope that helps.

Thanks,
Rick Yentzer 

Sam Hathaway

unread,
Mar 12, 2020, 10:48:15 AM3/12/20
to BBEdit Talk

I don’t know if this is current best practices, but I’ve always used /etc/paths to add directories to my $PATH. This way I’m sure that it applies to all programs, GUI and command-line, running as me or as root.

I don’t know what the implications would be for using Conda’s Python outside of a Conda environment, but I assume you’ve thought about that and it’s fine.

Hope this helps.
-sam

--
This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email "sup...@barebones.com" rather than posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
---
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bbedit+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bbedit/00886106-2da4-440e-ba68-681f8cb698d6%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages