3

I work on two computers, I have Sublime Text 3 and Python 2.7 on both of them.

Recently, without changing any configuration (except maybe installing some packages like ANACONDA for ST3), when I build my python code on Sublime Text 3: e.g.,

print 'Hello world'

Console output is just showing:

[Finished in 0.1s]

And nothing more, (I want to see the printed text), this is quite irritating because for the life of me I can't figure out how to solve this.

A related and perhaps identical problem is experienced by @Jens_Leersen. I've tried the answer contained in @radioxoma 's answer but to no avail.

Related example

4
  • Is the directory containing the python executable in your PATH? Did you choose the Python build system before building? Are there any errors or messages in the console? Commented Nov 6, 2015 at 14:25
  • Yes, the python exec. is in the PATH defined in the environment variables. and yes I chose python on the build system. No errors just the message [Finished in 0.1s] Example of a program with multiple prints link Commented Nov 6, 2015 at 14:50
  • How did you start Sublime - double-clicking on an icon, or from the command line? Also, when you build, does a black window open up, then immediately close? Commented Nov 6, 2015 at 15:22
  • I start Sublime by clicking on my quick access icon in the taskbar, when I build no black window opens up. Commented Nov 6, 2015 at 16:59

4 Answers 4

1

I got that thing as well. You can change it by Tools/Build with and choose "Python" instead of "Python- Syntax Check". It turns out that I clicked "Syntax Check" the first time I try to compile. My dumb mistake costs me a few minutes of panic.

Sign up to request clarification or add additional context in comments.

Comments

0

This got fixed by uninstalling python 2.7, and installing Anaconda with python 3.5, then installing anaconda through Package Control.

Comments

0

Use Ctrl+shift+b this will show a box asking you if you want to use Python or Python Syntax Check. Select Python and once you are done you will be able to use Ctrl+b to build you code and see the output at the bottom. this answer is just about the same as @1757 answers right below i am just using shortcuts to get to the same functionality

Thank you @1757

Comments

0

Its simple, press ctrl + shift + b and click on python (not python - syntax check). Build and Voila!

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.