On 02/25/2015 06:06 AM, [email protected] wrote:
Hello,

New user here, is there a way to specify the default (and a way to
override the default) Python version when running a selection or a file?
And is there a way to specify the version of the Python interpreter to
open? I am running the latest Spyder on Fedora 21 with both Python 3 and
2 installed. Would I have to change the system-wide default Python
(which I don't prefer) or is there a way to change it in Spyder or
specify on a case-by-case basis? Thanks!

Use the shebang line?:

http://stackoverflow.com/questions/4689233/what-to-reference-in-the-shebang-python26-or-python2-6

#! /usr/bin/env python2.7

#! /usr/bin/env python3.3


--
You received this message because you are subscribed to the Google
Groups "spyder" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.


--
Adrian Klaver
[email protected]

--
You received this message because you are subscribed to the Google Groups 
"spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.

Reply via email to