简体   繁体   中英

Get Sublime 3 + Python 3 work together on OS X

I am not only a total newcomer to Sublime text, but also to coding in general, so sorry if I am just to stupid to find an answer...

I am working through my first python tutorial and want to start learning it with python 3. I also want to do that with Sublime Text 3 on OS X (I am also new to that). I found out that Sublime Text 3 works with Python 3, but, not on my system (Build 3047):

import sys
print (sys.version)

2.7.2 (default, Oct 11 2012, 20:14:37) [GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] [Finished in 0.0s]

How can I get ST to work with Python 3?? I am searching the web for hours and found some people with the same problem but no answer (at least not on OS X).

Download and install Python 3 from the Python releases page ; Mac OS X installers are available.

Sublime Text 3 uses Python 3 internally, but that is an embedded Python not suitable for installing your own packages into.

You ran the default system Python, on OS X 10.8 that is still version 2.7. If you have installed Python 3, make sure you start it with python3 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM