How to run Python 3 in Sublime 2 REPL Mac

My question is this: I have elevated 2 and elevated replix plugin that everything works fine, the only thing I need is to change the version of python that is running on the built-in sublimerepl console. I mean that I have python 2.7.5 (which is pre-installed with maveriks) works fine in sublime (via sublimerepl) and I installed through the installer from python.org, python 3.3.3 what I need to use, I I want to run this version of python in the sublimerepl console, but I don't know how to do it.

I know that there are alternatives to the sublime, but not one of them is as beautiful as the sublime.

Can someone help me? I searched all over the internet and did not find anything useful.

Btw, if I use terminal python 3.3.3 works fine (Terminal> 'python3'), I know that this is possible because my friend got it working, and I installed mine as it is, but mine doesn't work.

+4
source share
3 answers

@poke answer - , , , , , . -, .sublime-menu Packages/User/SublimeREPL/config/Python/Main.sublime-menu ( - , Main.sublime-menu AFAIK). , , , "cmd", /Library/Frameworks/Python.framework/Versions/3.3/bin/python3, python.org. , ,

"cmd": ["python", "-i", "-u"],

"cmd": ["/Library/Frameworks/Python.framework/Versions/3.3/bin/python3", "-i", "-u"],

!

+2

, . Python /config/Python/Main.sublime-menu.

, :

  • Main.sublime-menu , , . python python3 caption, Python 3 (, Python 3 - RUN current file).

    , Cmd + Shift + P ( OSX, ?), Python 3, python3 .

  • Python Main.sublime-menu , . Python 2, , PackageManager; .

+1

:

: //ricardomartinez/Library/ /Sublime Text 3//SublimeREPL/config/Python/Main.sublime-menu

, :

"cmd": ["python", "-i", "-u", "-m", "pdb", "$file_basename"],

:

"cmd": ["/Library/Frameworks/Python.framework/Versions/3.5/bin/python3", "-i", "-u"],

, python3 exec, , Sublime ~/.bash_profile

, !

+1

All Articles