Sublimerepl does not run the code

Asked

Viewed 119 times

0

I’m using Sublime to write some codes in Python and Sublime REPL to "run" the codes. Anyway, I installed by package control, until then nothing strange, but when I put to run by REPL it gives "file not found error". How I make it spin?

  • Is this problem on Sublimerepl or your code? i.e. if you try to run a "hello world" or something equally simple, it still gives that same error?

  • 1

    Yes, they are simple codes because they are ILP exercises.

1 answer

-1

I think the problem is to point out where python is installed.

Check that the python installation folder is specified in the system variables. See attached image - click here. Do some simple operation through the terminal to make sure it is possible to use python from the terminal.

Being all right through the terminal, open the Sublime. With me I do so:

  1. I saved my file
  2. In View > Layout, i choose Columns: 2
  3. In Tools > Sublimerepl, i choose the language of my file.

That way, my file is on the left side and the interpreter on the right side.

  1. Now I click on the tab of my file
  2. In Tools > Sublimerepl > Transfer to REPL, click on File

That way, everything that is typed in my saved file is transferred to the interpreter.

  1. Tightening ENTER and start celebrating!
  • André, even if your tips solve the question problem, it would be interesting to add to the answer the reason that leads to the mentioned errors, and why your solution works.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.