On 11 feb. 2013, at 21:25, "Chip G." <n1mie.c...@gmail.com> wrote:

> I'm trying to learn Python. I have a book that is helping me along. I'd like 
> to use BBEdit as my editor, but I'm having some issues. Part of this is an 
> Apple/Fink thing. Part of the problem is that the version of python get if I 
> run using 'python' is old (v2.7.1). If I force paths I can get v2.7.3 or 
> v3.2.3. As near as I can tell, BBEdit uses the version as if I typed 'python' 
> which doesn't work properly with the code in the book. Even if I download the 
> authors copy directly. So I'm trying to find a way to force BBEdit to use a 
> specific version 2.7.3 or 3.2.3 vice the 2.7.1 it keeps preferring. Any ideas?

What's the first line of your script?

If python 2.7.1 rejects the code, then I assume that the code is written for 
python 3 (which is a sensible version to learn these days).

You can try to set the first line to:

#!/usr/bin/env python3

If that doesn't work, try to be more specific (open a terminal, and see which 
versions of python are available, typing python and pressing the tab-key should 
provide some options).

As a last resort, you could use the full path to python:

#!/usr/local/bin/python3

I'm sure others will provide the correct method for getting BBEdit to recognize 
your scripts and finding the appropriate interpreter.
        
Maarten

-- 
-- 
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem, 
please email "supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to