Connect with us

Setting up a Python Development Environment in Sublime Text

Videos

Setting up a Python Development Environment in Sublime Text



In this Python Tutorial, we will be setting up a development environment in Sublime Text 3. We will walk through how to install Sublime Text, install Package Control, install Packages, and much more. Let’s get started.

GitHub Sublime Settings –
Source Code Pro Font –
Build Systems tutorial –
Older Sublime Text 3 Setup (Web Dev focused)-…

49 Comments

49 Comments

  1. Ricardo Bieber

    September 4, 2019 at 8:18 pm

    Dude… That "command palette/install package control" isn't working for me….:( It says "an error occurred"…😑

  2. Radu Baloi

    September 4, 2019 at 8:18 pm

    After you paste the user settings REMEMBER to change "font_size":20 TO 10

  3. AONDONGU ADDAI

    September 4, 2019 at 8:18 pm

    please anyone with his github page id

  4. Saif Al-Badri

    September 4, 2019 at 8:18 pm

    This is fantastic, subscribed forever!

  5. MD SALMAN

    September 4, 2019 at 8:18 pm

    When i bulid my python program it shows the below error can anyone help me out plz.

    [WinError 2] The system cannot find the file specified

    [cmd: ['/usr/local/bin/python3', '-u', 'C:\Users\salman khan\Desktop\PYTHON\STRINGS\p1.py']]

    [dir: C:Userssalman khanDesktopPYTHONSTRINGS]

    [path: C:UserssalmankhanDesktopmathsbin;C:Rtoolsbin;C:Program Files (x86)Common FilesOracleJavajavapath;C:WINDOWSsystem32;C:WINDOWS;C:WINDOWSSystem32Wbem;C:WINDOWSSystem32WindowsPowerShellv1.0;C:ProgramDataAnaconda3;C:ProgramDataAnaconda3Scripts;C:MinGWbin;C:Program Files (x86)GTK2-Runtimelib;C:WINDOWSSystem32OpenSSH;C:Program FilesGitcmd;C:Android;C:WindowsSystem32;C:Userssalman khanAppDataLocalProgramsPythonPython36;C:Userssalman khanAppDataLocalProgramsPythonPython36Scripts;C:Program FilesJavajre1.8.0_191bin;C:Program FilesJavajdk1.8.0_191bin;C:Userssalman khanAppDataLocalProgramsMicrosoft VS Codebin]

  6. bongo is gnome

    September 4, 2019 at 8:18 pm

    IF YOU COULDN'T GET THE BUILD SYSTEM TO WORK, TRY THIS!

    >make new build system
    >paste
    {

    "cmd":["py", "-u", "$file"],

    "path":"C:\Python37\python.exe",

    "file_regex":"^[]File"(…?)",line([0-9]*)",

    "selector": "source.python"

    }
    then save your code as a .py file
    then build

    worked for me, I don't know if there is a more correct way to do this.

  7. 22ttiimmeess

    September 4, 2019 at 8:18 pm

    If anyone is getting a "[WinError 2] The system cannot find the file specified" issue, this comment from Corey was buried in the comments. I spent a good hour and a bit trying to figure it out. You might have to change the "" in your file path in your command prompt to "/" when you put it in your path in your *.sublime-build file. This is what he commented:

    Hi there. The PATH to Python is different in Windows than it is on a Unix-like machine. Try opening your command prompt and running Python, and then run the following code:

    import sys

    print(sys.executable)

    It should show the PATH you need to put into your build system instead of the current "/usr/local/bin/python3.5"

    I hope that helps!

  8. Mona Gulapa

    September 4, 2019 at 8:18 pm

    I'm speechless. Amazing ! 👍

    Thank you so much !

  9. Surferonacid

    September 4, 2019 at 8:18 pm

    18:14
    how to enable that 'check error' dot-thingy from anaconda?

  10. jason Sung

    September 4, 2019 at 8:18 pm

    In the video, at 17:33, anaconda linting provides ball next to for loop. I wonder why it does not appear in my sublime. any idea? Also, the auto-formatting does not work with error "Autoformatting failed, buffer not changed"

  11. FelipeMedLev

    September 4, 2019 at 8:18 pm

    Console interaction does not work for me when I type an input. It just stops

  12. omogbeme iyere

    September 4, 2019 at 8:18 pm

    good day sir pls while trying to execute the anaconda package which you suggested for us to install i sort of had an error while testing it the error was based on my PATH how do i correct this … ps I wish i could show you a screen shot of the error i am having

  13. 杰秀哥jerry

    September 4, 2019 at 8:18 pm

    Thank you so much, sir!

  14. Sam Hatts

    September 4, 2019 at 8:18 pm

    I've been trying to use sublime text but when i put in the code from one of my old python programs, i can't enter inputs when trying to test code in sublime text. Is there a way to make me able to type in inputs?

  15. Abel Pinheiro

    September 4, 2019 at 8:18 pm

    I get this error everytime I run Sublime:
    "Anaconda can not spawn a new process with your current configured python interpreter (python3).
    Make sure your interpreter is a valid binary and is in your PATH or use an absolute path to it, for example:
    C:\Python27\python.exe"

    Could anyone give me some Help?
    Thanks!

  16. sam a

    September 4, 2019 at 8:18 pm

    setting up on win 10 x64 with sublime 3207 x64 and when i ctrl+V your github file preferences (different than video) some of the sublime gui goes completely black and the text becomes hidden, also the background on the command pallet background disappeared leaving text floating. Bracket Highlight package didn't highlight to the left of the line number either. Are the packages and this most recent sublime build incompatible or am i somehow installing these incorrectly?

  17. Paulo Jose Papa

    September 4, 2019 at 8:18 pm

    Hi Everyone, I'm receiving this error when trying to run from Python 2 or 3 build:
    [WinError 2] The system cannot find the file specified

    [cmd: ['/usr/bin/python2.7', '-u', 'C:\Users\kloud\Desktop\PyFiles\intro.py']]

    [dir: C:UserskloudDesktopPyFiles]

    [path: C:WINDOWSsystem32;C:WINDOWS;C:WINDOWSSystem32Wbem;C:WINDOWSSystem32WindowsPowerShellv1.0;C:WINDOWSSystem32OpenSSH;C:Program FilesMicrosoft SQL Server110ToolsBinn;C:UserskloudAppDataLocalProgramsPythonPython37-32Scripts;C:UserskloudAppDataLocalProgramsPythonPython37-32;C:UserskloudAppDataLocalMicrosoftWindowsApps]

    Can somebody help? 🙂

  18. Surenfeb19

    September 4, 2019 at 8:18 pm

    can i use sublime text for Django, if i did not paste the user setting in the sublime text.

  19. Surenfeb19

    September 4, 2019 at 8:18 pm

    hi Mr. corey, i could not find the general settings to paste in the second window of sublime text editor, in the video it is at 7.25 minutes

  20. Jabba

    September 4, 2019 at 8:18 pm

    I believe there's something wrong with the github preferences code you posted. Using windows, It causes a glitch in the sublime program where a black bar appears above and below the program causing the title of the window to be illegible. When i revert back to default settings it solves the problem.

  21. Berf Buggers

    September 4, 2019 at 8:18 pm

    I've never actually managed to get any of these packages to work. Even in 2 different laptops, 1 Linux Mint & 1 on Win 10.

    SidebarEnhancement doesn't give me any other options, BracketHighlighter doesn't show anything and the anaconda package always produces an error at startup and then causes ST3 to not respond once I sort out the initial error.

    Really annoyed as this is 2 different systems now that none of these packages work on.

  22. Fat Dawg

    September 4, 2019 at 8:18 pm

    Beautiful

  23. Santosh Sundar

    September 4, 2019 at 8:18 pm

    Fantastic video. I did it while I watched the video. I just want to be sure of E309 which doesn't exist in the list of options. It could probably be E303 for eliminating blank lines.

  24. Julio L M

    September 4, 2019 at 8:18 pm

    How do I know what is the phat I have to save the sublime-build file?

  25. Moses Okpalefe

    September 4, 2019 at 8:18 pm

    Great job on this very detailed tutorial. I, however, have a problem when I try to build a python script on Sublime Text 3. The error is a winerror 2 stating the system cannot find the file specified. The full details;

    [WinError 2] The system cannot find the file specified

    [cmd: ['/usr/local/bin/python3', '-u', 'C:\Users\Moses Marho Okpalefe\Documents\Personal Courses\Python\intro.py']]

    [dir: C:UsersMoses Marho OkpalefeDocumentsPersonal CoursesPython]

    [path: C:Program Files (x86)Common FilesIntelShared FilescppbinIntel64;C:Windowssystem32;C:Windows;C:WindowsSystem32Wbem;C:WindowsSystem32WindowsPowerShellv1.0;C:WindowsSystem32OpenSSH;C:UsersMoses Marho OkpalefeAppDataLocalProgramsPythonPython37-32;C:UsersMoses Marho OkpalefeAppDataLocalProgramsPythonPython37-32Scripts;C:UsersMoses Marho OkpalefeAppDataLocalProgramsPythonPython37-32;C:UsersMoses Marho OkpalefeAppDataLocalMicrosoftWindowsApps;]

    Done some googling but keep coming up short. Any help will be appreciated

  26. Joe Lim

    September 4, 2019 at 8:18 pm

    when i press ctrl + b on my windows laptop, nothing happens

  27. Ethan Chan

    September 4, 2019 at 8:18 pm

    when I use the print end=' ' argument in sublime text it raises an invalid syntax error. does anyone know the solution to this?

  28. Na No

    September 4, 2019 at 8:18 pm

    Thank you so much. This was so helpful.

  29. David Erwin

    September 4, 2019 at 8:18 pm

    Hey I did everything you said but anaconda is not working, no white dots or auto pep8. I have tried a lot of things but nothing has worked pls help.

  30. An Nghe

    September 4, 2019 at 8:18 pm

    After follow to add all setting I open blank Sublimetext3 and have the following error msg
    The system cannot find the path specified.

    [Finished in 0.1s with exit code 1]

    [shell_cmd: bingo get -x -u github.com/DamnWidget/godef golang.org/x/tools/cmd/guru github.com/fatih/motion github.com/josharian/impl github.com/nsf/gocode github.com/zmb3/gogetdoc gopkg.in/alecthomas/gometalinter.v1]

    [dir: C:Program FilesSublime Text 3]

    [path: C:Program Files (x86)Common FilesOracleJavajavapath;C:ProgramDataOracleJavajavapath;C:Windowssystem32;C:Windows;C:WindowsSystem32Wbem;C:WindowsSystem32WindowsPowerShellv1.0;C:Program Files (x86)IntelOpenCL SDK2.0binx86;C:Program Files (x86)IntelOpenCL SDK2.0binx64;C:Program Files (x86)QuickTimeQTSystem;C:Python37;C:Python37Scripts]

    Please any one help. Thanks a lot

  31. Jose Magana

    September 4, 2019 at 8:18 pm

    I keep getting an error when I try to build a piece of code, people are saying to save the file of the python build system and I did that too. its getting really frustrating and I really wanna learn code. Anyone that can help, that would really mean a lot.

  32. Hemanth s

    September 4, 2019 at 8:18 pm

    Bro can you say how to install python libraries in sublime 3 like ("pyttsx3, etc") and many more

  33. Tijn Schutte

    September 4, 2019 at 8:18 pm

    for me the anaconda settings don't work.. The white balls in de 'gutter' don't appear and the auto formatting doesn't work. Is that code outdated?

  34. Jair Bolivar

    September 4, 2019 at 8:18 pm

    Hello Corey, I want to thank you so very much for sharing such a great tutorial/video. I am so motivated to work on my network-automation projects with python using sublime and atom as well. I am not sure which one to stick with, to be honest… one quick question though, were you able to find an equivalent for the 'brackethighlighter' component? the one that highlights the different brackets at the column numbers? that is one of the reasons I am still thinking about not moving away from sublime… I appreciate it in advance if you have anything similar to that? Again, thanks so very much for sharing your knowledge and in the very motivational and professional way. God bless you.

  35. luigi taglialatela

    September 4, 2019 at 8:18 pm

    Does he have a southern accent or am I hallucinating?

  36. Ahmed Shubbar

    September 4, 2019 at 8:18 pm

    If Anaconda didn't work with you, notice that recent Corey github Anaconda setting had Python interpreter path which you can remove if Python path is in OS path. Or get the path by print(sys.executable) and for Windows use double backslash for every single one.

    Great tutorial.

  37. Lawrence D’Oliveiro

    September 4, 2019 at 8:18 pm

    Does Sublime Text support keystrokes to let you quickly jump between lines with matching indentation, as opposed to between matching statement brackets? Because as you know Python doesn’t use statement bracketing.

    I have been able to define such keystrokes in Emacs. Though this does require adopting certain coding conventions: https://ldo17.tumblr.com/post/155087402702/fixing-pythons-greatest-mistake

  38. Jeremy Botto

    September 4, 2019 at 8:18 pm

    Built Systems not-working on Win10.

  39. addi wei

    September 4, 2019 at 8:18 pm

    font_size = 20? WTF Video should be titled "Geriatric Python Settings" lol

  40. Zeio Nara

    September 4, 2019 at 8:18 pm

    Perfect video, thank you

  41. Johnny Damilatis

    September 4, 2019 at 8:18 pm

    Clean video ,thanks for the sublime settings man .

  42. Victor Krook

    September 4, 2019 at 8:18 pm

    Hi, I'm getting an error message when trying to use the auto-formatting with anaconda settings.
    The errormessage is: "Autoformatting failed, buffer not changed".
    Any ideas?

  43. Usinani

    September 4, 2019 at 8:18 pm

    Concise clear content, thank you very much Corey for these great tutorials!

  44. lois p

    September 4, 2019 at 8:18 pm

    Preferences.sublime-settings
    {
    "theme": "Material-Theme-Darker.sublime-theme",
    "color_scheme": "Packages/Predawn/predawn.tmTheme",

    "materia_theme_accent_graphite": true,
    "material_theme_compact_sidebar": true,

    "font_face": "?",
    "font_options":
    [
    "no_round"
    ],
    "font_size": 19,
    "bold_folder_lables": true,
    "caret_extra_width":1,
    "caret_style": "phase",
    "close_windows_when_empty": false,
    "copy_with_empty_selection": false,
    "drag_text": false,
    "draw_minimap_border": true,
    "enable_tab_scrolling": false,
    "highlight_line": true,
    "ignore_packages":
    [
    "vintage"
    ],
    "line_padding_bottom": 1,
    "line_padding_top": 1,
    "match_brackets_content": false,
    "match_selection": false,
    "match_tags": false,
    "open_file_in_new_window": false,
    "overlay_scroll_bars": "enabled",
    "preview_on_click": false,
    "scroll_past_end": true,
    "scroll_speed": 5.0 ,
    "show_full_path": false,
    "sidebar_default": true,
    "translate_tabs_to_spaces": true,
    "trim_trailing_white_space_on_save": true,
    "word_wrap": true,

    "show_definitions": false,
    "show_encodiong": true,
    "show_errors_inline": false,

    "ensure_newline_at_eof_on_save":true,
    "highlight_modified_tabs": true,
    "use_simple_full_screen": true
    }

  45. Madan Mohanan

    September 4, 2019 at 8:18 pm

    the build systems aren't working in windows

  46. meatyout

    September 4, 2019 at 8:18 pm

    Thanks A LOT, Corey! All the great job you are doing is very very helpful. 
    I wish you all the best. 🙂

  47. reallysorrymate

    September 4, 2019 at 8:18 pm

    Great tutorial, thanks so much!
    I have a problem tho:

    If I try like you to run the print command, I get

    [WinError 2] The system cannot find the file specified

    It's right there on my desktop. Anyone care to help? Thanks

  48. Steven Tse

    September 4, 2019 at 8:18 pm

    please add visual studio code set up

  49. Juan Pablo Bartolomeo

    September 4, 2019 at 8:18 pm

    I've pasted the code for the user preferences from your Git and I broke everything 😂

Leave a Reply

Your email address will not be published. Required fields are marked *

More in Videos

To Top