jbe*_*rdo 5 python macos read-eval-print-loop sublimetext sublimerepl
My question is the following, I have sublime 2 and sublime repl plugin installed all working fine, the only thing i need is to change the version of python that is running on the sublimerepl built in console. What I mean is, I have python 2.7.5 (which is pre installed with maveriks) running fine in sublime (via sublimerepl), and I have installed via the installer from python.org, python 3.3.3 , that I need to use, I want to run this version of python on the sublimerepl console but I don't know how.
I know that there are alternatives to sublime but none of those are so beautiful as sublime is.
Can someone help me with this ? I've searched for all over the internet and couldn't find anything helpful.
顺便说一句,如果我使用终端python 3.3.3可以正常工作(Terminal>'python3'),我知道这是可能的,因为我的一个朋友让它工作了,并且我像他一样安装了我的,但是我的却不工作。
@poke 的答案很好,但有一些细节需要纠正,我认为我只是输入自己的答案,因为它们太长,无法发表评论。首先,.sublime-menu应该对条目进行命名Packages/User/SublimeREPL/config/Python/Main.sublime-menu(将文件命名为其他名称不会将其集成到菜单系统中,它必须是Main.sublime-menuAFAIK)。另外,对于您的系统,您可能应该将行更改"cmd"为指向/Library/Frameworks/Python.framework/Versions/3.3/bin/python3,这是 python.org 安装所在的位置。例如,它说
"cmd": ["python", "-i", "-u"],
Run Code Online (Sandbox Code Playgroud)
将其更改为
"cmd": ["/Library/Frameworks/Python.framework/Versions/3.3/bin/python3", "-i", "-u"],
Run Code Online (Sandbox Code Playgroud)
祝你好运!
| 归档时间: |
|
| 查看次数: |
6358 次 |
| 最近记录: |