Python Forum
Can't run my code in sublime
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can't run my code in sublime
#1
Hello guys i am new to python.

I installed Anaconda including the Anaconda prompt, which works fine. Then i saw a guy on youtube using sublime text 3, so i went to install that, but when i want to run my code inside the sublime (ctrl + b) it gives me to different errors depending on if i saved the file or not. I am not an expert but it seems like there's some issues with my directories?

Whitout saving the file:
[Image: kt2npp]

When file is saved:
https://ibb.co/naNWFU
Reply
#2
you need to save the file before being able to execute it.
in both cases you miss assignemnt i.e.
text_to_search = """
your text here
your text here
"""
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#3
Thanks it's working now!! (Y)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  while loop not working-I am using sublime text editor mma_python 4 1,124 Feb-05-2023, 06:26 PM
Last Post: deanhystad
  Sublime Text Editor not recognizing Python elroberto 5 2,865 Jun-13-2022, 04:00 PM
Last Post: rob101
  Code folding in Sublime Text Mondata 2 2,797 Mar-12-2021, 04:16 PM
Last Post: Mondata
  How to link Sublime Text 3 Build system to Python 3.9 Using Windows 10 Fanman001 2 4,590 Mar-04-2021, 03:09 PM
Last Post: martpogs
  Sublime Text TechNitium 4 2,753 Jan-23-2021, 08:41 AM
Last Post: TechNitium
  sublime & intellisence luke83 0 1,625 Nov-20-2020, 08:26 PM
Last Post: luke83
  Sublime Text + Anaconda not indenting Python code correctly Maxximiliann 0 1,983 Jun-13-2020, 06:09 PM
Last Post: Maxximiliann
  switching from pycharm to sublime issue Drifter 2 1,986 Jun-09-2020, 09:19 PM
Last Post: Drifter
  Contextual pop-up menus in Sublime Text Mondata 4 2,424 Apr-08-2020, 06:32 PM
Last Post: buran
  Sublime Text 3 WinError 2 File Specified HelloWorld17 0 2,807 Apr-02-2020, 09:03 AM
Last Post: HelloWorld17

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020