Setting up a Python Development Environment in Sublime Text

Поділитися
Вставка
  • Опубліковано 2 жов 2024
  • 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 - github.com/Cor...
    Source Code Pro Font - fonts.google.c...
    Build Systems tutorial - • Python Tutorial: Custo...
    Older Sublime Text 3 Setup (Web Dev focused)- • Sublime Text 3: Setup,...
    Sublime Text Playlist - • Sublime Text
    Atom Python Development Environment Setup - • Setting up a Python De...
    ✅ Support My Channel Through Patreon:
    / coreyms
    ✅ Become a Channel Member:
    / @coreyms
    ✅ One-Time Contribution Through PayPal:
    goo.gl/649HFY
    ✅ Cryptocurrency Donations:
    Bitcoin Wallet - 3MPH8oY2EAgbLVy7RBMinwcBntggi7qeG3
    Ethereum Wallet - 0x151649418616068fB46C3598083817101d3bCD33
    Litecoin Wallet - MPvEBY5fxGkmPQgocfJbxP6EmTo5UUXMot
    ✅ Corey's Public Amazon Wishlist
    a.co/inIyro1
    ✅ Equipment I Use and Books I Recommend:
    www.amazon.com...
    ▶️ You Can Find Me On:
    My Website - coreyms.com/
    My Second Channel - / coreymschafer
    Facebook - / coreymschafer
    Twitter - / coreymschafer
    Instagram - / coreymschafer
    #Python

КОМЕНТАРІ • 920

  • @drewconroy5938
    @drewconroy5938 7 років тому +583

    I have said this before and I will say it again. After scouring the net, this is by far the best tutorial if you need to set up a Python environment with Sublime Text 3. If you happen to be reading this, take note and watch the video:)

    • @coreyms
      @coreyms  7 років тому +15

      Thanks, Drew!

    • @ChitranshuVashishth
      @ChitranshuVashishth 5 років тому

      Thanks for this video. I am completely newbie and setting up text editors and IDE have become a daunting task for me.@@coreyms

    • @hameem6845
      @hameem6845 5 років тому +1

      Haven't watched it yet but I believe you!

    • @JorgeMarquezRave
      @JorgeMarquezRave 5 років тому +1

      Agree 100%

    • @gethsun1
      @gethsun1 4 роки тому

      We getting to the end of 2019 started off with Corey's tutorials 4 months ago after wandering the www for since begging of the year and I attest to your proclamation I am past my formative stages of programming and building my first app for a client Long Live Mr. Corey M. Schafer

  • @2494capn
    @2494capn 5 років тому +10

    I work in Operations consulting with a lot of ERPs and WMS' and decided to learn python as it was a really versatile language. These videos, in conjunction with the book "Learning Python", have helped along tremendously. Thank you so much!

  • @noicon6815
    @noicon6815 5 місяців тому +8

    I just went to your github but I can't find the Anaconda sublime settings anymore

  • @snyredbaron21
    @snyredbaron21 6 років тому +40

    What a great explanation! Now I understand a lot of things about text editors and not only for Sublime. Thank you so much, Corey!

  • @tajindersinghdhoot
    @tajindersinghdhoot 6 років тому +329

    14:47
    In windows split shortcut is :
    Alt+Shift+2 to split in 2 columns
    Alt+Shift+3 to split in 3 columns
    Alt+Shift+4 to split in 4 columns
    Alt+Shift+8 to split in 2 rows
    Alt+Shift+9 to split in 3 rows
    Alt+Shift+5 to split in grid of 4
    or
    View>Layout>(select option)
    It is for Sublime Text 3

  • @muhammadmz8791
    @muhammadmz8791 10 місяців тому +1

    anything i've searched about python, you had a valuable course about that in your channel, thank you.

  • @22ttiimmeess
    @22ttiimmeess 5 років тому +33

    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!

    • @bieldozap
      @bieldozap 4 роки тому +2

      my hero

    • @JohnDoe-fy9cv
      @JohnDoe-fy9cv 3 роки тому

      For windows this worked for me: /usr/local/bin/python3.5 > C:\\Program Files\\Python39\\python.exe and adjust install path to relevant version location.

    • @kingsleymichael2648
      @kingsleymichael2648 16 днів тому

      I did that and it didnt work. The error message is now "no build system". Do i have to mess with the "-u" that comes after the "/usr/local/bin/python3.5" that we replaced?

  • @soulofangel1990
    @soulofangel1990 3 роки тому

    I'm glad I've found your channel, once I got a job mate, I'll give something back, I owe you.

  • @ankithabhayan324
    @ankithabhayan324 4 роки тому +18

    "How to setup a development environment"
    Step1:change the wallpaper to kali linux dragon
    Step2:change colour of cmd output text to green
    Step3:enable dark mode on all apps.
    Hehe

  • @colbycash5753
    @colbycash5753 6 місяців тому +7

    Your anaconda sublime settings are not on Github.

    • @virginiastars5325
      @virginiastars5325 Місяць тому

      Is there a work around for getting the Anaconda settings?😊

  • @keithpeterston8556
    @keithpeterston8556 6 років тому +18

    ⇨ADDITIONAL INFO: How To View Side Bar Folders in Sublime Text
    Corey Schafer shows in this Video (at Timecode 12:19) the installation of a Package called "Side Bar Enhancements" which he describes in the video using the display of FOLDERS in the Sidebar.
    WHAT IS NOT DESCRIBED CLEARLY is that in order to see Folders in the Sublime Text Editor you need to:
    1. Click on VIEW MENU > Side Bar > View Side Bar.
    2. Click on FILE > OPEN... then click on a File Folder (not a individual File), then click on OPEN.
    OR OPTIONALLY...
    Drag and drop the selected folder on to the "Sublime Text" window (method used in the video at Timecode 2:15 by Corey Schafer)
    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
    ★ RECOMMENDATION: Corey Schafer should place this information in the Video Description (as comments often get buried) so that others new to Sublime Text whom are following Video - step by step - will see the same thing as shown in the video.
    Hope this helps someone.

  • @phillinolph
    @phillinolph 7 років тому +1

    Your videos are fantastic! Thank you for putting everything in the description and for being so thorough. You do a great job going from the big picture reasoning for doing something down to the details of execution.

  • @allenmudrovcic
    @allenmudrovcic 7 років тому +39

    For windows split screen mode is Alt+Shift+2 or View, Layout, Columns: 2
    edit: im talking about this part 14:47

    • @puravida77700
      @puravida77700 6 років тому +1

      Thanks, was looking for that:)

    • @aafre
      @aafre 6 років тому

      It's Cntl+Shift+2

  • @JoshuaDHarvey
    @JoshuaDHarvey 4 роки тому +2

    Great video, thank you! Also, at 7:06 the material theme read-me was appended below the predawn message. Also 14:50 the Windows shortcut is Alt + Shift + 2

  • @johnsabini3218
    @johnsabini3218 5 років тому +32

    What makes a teacher interesting? She or He knows the material AND knows how to present it. That takes time and effort. Repetition is important without making it all boring. Corey is one of the great teachers for this material.

  • @curacaojay
    @curacaojay 4 роки тому

    Thank you Corey. This vid was helpful for me to setup my Sublime environment to use the Anaconda Python install instead of my default version on the Mac. Thanks for posting.

  • @gaizkamansofernandez5428
    @gaizkamansofernandez5428 4 роки тому +10

    I know its 3 years later but,
    following your setings, at 17:27 my sublime wont highlight any errors.
    Any idea?

    • @Dream_display
      @Dream_display 3 роки тому

      I spent hours on this problem as well. It turns out that you just have to change "python_interpreter" to "python" in Anaconda User-settings. Make sure to save and restart.

  • @davidelliott9030
    @davidelliott9030 3 роки тому +1

    Loved this tutorial. Since seeing a random UA-cam video by Corey Schafer, I wanted my system to work in a similar fashion. The only thing I can't get to work as he does is the 'linter' is it? The helpful white dot in the gutter indicating an error and the more specific information at the bottom of the page - it's irritating me no end! Still, I'm subscribed to the channel and will be working my way through these videos.

  • @plato4ek
    @plato4ek 3 роки тому +14

    So, suggested packages are:
    * Predawn (color scheme)
    * Material Theme
    * BracketHighlighter
    * SideBarEnhancements
    * Anaconda

  • @ipbloke
    @ipbloke 7 років тому

    Top man Corey that was a great presentation - thanks for taking the time to do that !

  • @berfbuggers1333
    @berfbuggers1333 5 років тому +9

    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.

    • @ACABSTUDIOS
      @ACABSTUDIOS 5 років тому +1

      Sidebar Enhancement only gives me extra options if I open a folder instead of just a file

  • @woolfy02
    @woolfy02 2 роки тому

    I'm a newb to coding and looking forward to getting this setup! Great tutorial

  • @petercalum9767
    @petercalum9767 6 років тому +20

    Hi,
    First of all, thank you for your very nice videos.
    If you make your own build systems for example for python 2.7 and 3.6 on windows, remember to escape with 2 \ to make it work.
    {
    "cmd": ["C:\\Users\\YourName\\AppData\\Local\\Programs\\Python\\Python36-32\\python.exe", "-u", "$ file"],
    "file_regex": "^ [] * File \" (... *?) \ ", line ([0-9] *)",
    "quiet": true
    }

    • @walterfrancoulloa1199
      @walterfrancoulloa1199 4 роки тому

      This works for windows once you download the build system right?

    • @pythoncodingtutorials4471
      @pythoncodingtutorials4471 3 роки тому

      @@walterfrancoulloa1199 you dont download the build system you have to make it yourself as Peter Calum has shown above ^

    • @sharkbite01
      @sharkbite01 Рік тому

      for windows in python 3.11 it's even shorter:
      {
      "cmd": ["python.exe", "-u", "$file"],
      "file_regex": "^ [] * File \" (... *?)\", line ([0-9]*)",
      "quiet": true
      }

  • @meatyout
    @meatyout 5 років тому +1

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

  • @damnteflon4414
    @damnteflon4414 3 місяці тому +3

    For those asking about the missing Anaconda SublimeText settings GitHub file:
    1. Access your Anaconda User settings in Sublime using the method the professor showed
    2. I personally typed out the code that he shows in the video (the code isn't too long to type out). Just make sure you type out everything correctly
    3. Make sure to save and restart your instance of Sublime Text
    The file is most likely missing due to recent updates within his GitHub files, who knows.

    • @RemziKaykc
      @RemziKaykc 2 місяці тому +5

      {
      "auto_formatting": true,
      "autoformat_ignore":
      [
      "E309",
      "E501"
      ],
      "pep8_ignore":
      [
      "E309",
      "E501"
      ],
      "anaconda_linter_underlines": false,
      "anaconda_linter_mark_style": "none",
      "display_signatures": false,
      "disable_anaconda_completion": true
      }

    • @izikpavlyuk1321
      @izikpavlyuk1321 Місяць тому

      @@RemziKaykc Thanks!

    • @the_bunty
      @the_bunty 27 днів тому

      @@RemziKaykc Thank you so much you're a hero!

  • @monagulapa3022
    @monagulapa3022 5 років тому +1

    I'm speechless. Amazing ! 👍
    Thank you so much !

  • @oriontorrents9766
    @oriontorrents9766 3 роки тому +4

    Hi Cory, I just want to let you know that your Sublime text settings on your Git hub page is completely different to the one that you are using.
    Is there any possible way to change that?

  • @tymothylim6550
    @tymothylim6550 3 роки тому

    Thank you very much for this video! It was very helpful and helped me understand how to get Sublime set up and ready to use! Helpful also to know the various preference settings and addon packages! :)

  • @freddief939
    @freddief939 6 років тому +12

    if you're different Python 3.x version, be sure to update the .sublime-build file to include the path to your version number. I am using python 3.6, not 3.5

    • @emmanuelcuevas7902
      @emmanuelcuevas7902 6 років тому +1

      how do you do that?

    • @mountainscott5274
      @mountainscott5274 6 років тому

      Thanks, that cleared an error

    • @samminguyen22
      @samminguyen22 6 років тому

      yes, how do you do that?

    • @GrononMc
      @GrononMc 6 років тому +3

      I got in my windows, where python installed "cmd": ["C:\\Users\\YourNameUser\\AppData\\Local\\Programs\\Python\\Python36-32\\python.exe", "-u", "$file"]

    • @lorenzomaglione210
      @lorenzomaglione210 6 років тому +1

      could you explain more where you paste this code and what its purpose is? Thanks

  • @ZZZZZZZaaaart
    @ZZZZZZZaaaart 4 роки тому +1

    After this video I had to subscribe. Amazing video.

  • @jermsbestfriend9296
    @jermsbestfriend9296 5 років тому +11

    Built Systems not-working on Win10.

    • @ACABSTUDIOS
      @ACABSTUDIOS 5 років тому +2

      Use the one for windows OS geekytutorials.com/how-to-setup-python-3-on-sublime-text/

    • @magicblini
      @magicblini 4 роки тому +1

      @@ACABSTUDIOS Thanks man, it was really helpful

  • @ashwatson2142
    @ashwatson2142 6 років тому

    Corey, your videos are amazing. Also doing your OOP tutorials... superb

  • @MyTube4Utoo
    @MyTube4Utoo 6 років тому +22

    Just found your videos today Corey (Nov. 23, 2017). Best thing that ever happened for my Python learning! Thank You!

  • @vladoportos
    @vladoportos 7 років тому

    Very helpful, was looking for some python environment for coding and this looks great. 80 bucks for bit harder to swallow :) but it works nice.

  • @shamrock1961
    @shamrock1961 4 роки тому +3

    DUDE! You REALLY NEED TO UPDATE this video. Sublime Text has changed in the three years since this video was made.

  • @zhanpengzhou3492
    @zhanpengzhou3492 5 років тому +1

    keep on going man really thanks for your excellent work

  • @BrianSwatton
    @BrianSwatton 10 місяців тому +3

    Thanks Corey, your excellent tutorials got me flying with python in no time some years ago. I've created a lot of valuable applications for my work with it since. I had followed your setup for atom and used it for years until a disc corruption killed it today. Of course, atom now no longer available. Now trying sublime and following your lead again. Thanks again.

  • @ihebhaboubi1570
    @ihebhaboubi1570 6 років тому +2

    your tutorials are the best

  • @ryanpatton1795
    @ryanpatton1795 4 роки тому +5

    Oh my god, sublime text is so good. I cant stand how slow PyCharm is, and I needed a little bit more functionality than just using the IDLE editor. I appreciate this video

  • @machende1
    @machende1 7 років тому

    cheers Mate!! your a great teacher, well done!!

  • @23TrevorE
    @23TrevorE 7 років тому +20

    Bloody awesome video, mate!

  • @iaggocapitanio7909
    @iaggocapitanio7909 4 роки тому +1

    Thanks, bro, very useful!

  • @Jannat-cz6gq
    @Jannat-cz6gq 6 років тому +4

    my program is not running.can anyone help please?when i build everytime it shows below text.
    C:\Program Files\Python36-32\python.exe: can't find '__main__' module in ''
    [Finished in 0.4s]

    • @coreyms
      @coreyms  6 років тому +4

      I believe that is the error you receive if you are trying to run the code without saving the file. You have to save it as a .py file before running the code.

  • @sazopro
    @sazopro 4 роки тому +4

    The only package that appeared on my Command Palette was Predawn, none of the rest.... :(

    • @shaktidagar4477
      @shaktidagar4477 4 роки тому +7

      It happened to me too, but it was an error on my part...maybe you are doing the same.
      when he said to install Predawn, he first clicked
      install packages -> then Predawn.(which i did)
      but for all the packages after that all i was doing was typing the package name directly in the command palette, i had forgot to select install package first from command palette before searching for the package.
      figured it out after 10 minutes.
      All packages are visible now.
      Hope this helps.

  • @ZafarDidit
    @ZafarDidit 5 років тому +2

    Hi Corey. I configured build Python 2.7 and Python 3 but when I run the code there it is not showing me in the console which version of Python was run. How to enable it, so I can have it displayed as you did.

  • @surferonacid596
    @surferonacid596 5 років тому +8

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

    • @surferonacid596
      @surferonacid596 4 роки тому

      @Beyond Oblivion Can't remember...I transferred to PyCharm.

    • @ebla1n393
      @ebla1n393 4 роки тому

      @Beyond Oblivion Have you found the solution? Cause I also can't enable it(

    • @srinivasatejakoorapathy2937
      @srinivasatejakoorapathy2937 4 роки тому +4

      @Beyond Oblivion
      I also tried the tweaks and was successful, here are my moves
      1. Just install Anaconda package ,open the Default Anaconda package settings>go to "anaconda_linting": true,
      Check for the 'true', 'true' only will work. Then restart the sublime and just check whether the Global/Default settings are working or not. To do this you can verify with any code you already have. You have to get the Dot thing(Linting) with default settings.
      2. Now open the User Anaconda settings and copy the below code and save it. Saving is important.
      {
      "auto_formatting": true,
      "autoformat_ignore":
      [
      ],
      "pep8_ignore":
      [
      "E501"
      ],
      "anaconda_linting": true,
      "anaconda_linter_underlines": false,
      "anaconda_linter_mark_style": "none",
      "display_signatures": false,
      "disable_anaconda_completion": true,
      "python_interpreter": "python"
      }
      3. This should do the work.

    • @surajpadalkar8051
      @surajpadalkar8051 4 роки тому

      @@srinivasatejakoorapathy2937 did the trick bro thanks

  • @danielitaabg
    @danielitaabg Рік тому

    Amazing Tutorial, thank you!

  • @moveyobodytoday
    @moveyobodytoday 4 роки тому +5

    Why am I getting "Error: Permission Denied" when I try to add Build System for 3.8. Is it different code??

    • @durantburner7428
      @durantburner7428 4 роки тому

      Probably just run Sublime as an administrator if you aren't already

  • @OneShotKill3r
    @OneShotKill3r 2 роки тому

    Corey Schafer, thank you!!

  • @Lowzenza4
    @Lowzenza4 7 років тому +17

    Am I missing something here...why can I not run any commands in ST? Nothing gets executed...

    • @shmuelshaked5524
      @shmuelshaked5524 6 років тому +1

      I hope it is not to late...
      ua-cam.com/video/R5-niid0m8A/v-deo.html

    • @yangalanga
      @yangalanga 5 років тому

      @@shmuelshaked5524 thank you

  • @MyTube4Utoo
    @MyTube4Utoo 6 років тому

    Extremely helpful. Thank you.

  • @juanpablobartolomeo5613
    @juanpablobartolomeo5613 5 років тому +13

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

    • @surferonacid596
      @surferonacid596 5 років тому

      Yeah same here. But I changed the theme and it went back to normal.

    • @guanqiaowang7586
      @guanqiaowang7586 5 років тому

      Same, the software was acting weird

    • @PremBardhan
      @PremBardhan 5 років тому

      @@guanqiaowang7586 same

  • @ewmg82
    @ewmg82 4 роки тому +2

    I ran into a path problem. I don't know if Corey mentioned it and I missed it but make sure to put your path of python in the build and anaconda; otherwise, it will not build. Corey has it as /usr/local/bin/python3, mine was /usr/bin/python3

    • @humphreyappleby2847
      @humphreyappleby2847 4 роки тому

      how do we put our path of python in the build and anaconda?

    • @ewmg82
      @ewmg82 4 роки тому

      @@humphreyappleby2847 Preferences/Package Settings/Anaconda/Settings-User. Tools/Build

    • @ewmg82
      @ewmg82 4 роки тому

      To know yourpython path type "which python3" in terminal.

    • @humphreyappleby2847
      @humphreyappleby2847 4 роки тому

      @@ewmg82 appreciate the help mr morales

  • @anshulmcamanit
    @anshulmcamanit 6 років тому +14

    Immediately subscribed your channel.
    Really crisp and to the point videos.
    Absolutely loving it.

  • @joshuaf91
    @joshuaf91 5 років тому

    Thank you for this video. It was a great help!!!!!!

  • @heijihattori668
    @heijihattori668 5 років тому +3

    The github page is not opening ?!
    Edit- in ubuntu 19.04

    • @masterthorne
      @masterthorne 5 років тому +2

      I had the same issue. If you go to Corey's github Repos, it's under dotfiles >> settings. Link: github.com/CoreyMSchafer?tab=repositories

  • @MaxBouncer
    @MaxBouncer 3 роки тому +1

    Material Theme no longer works. "This project is no longer under active development."

  • @benjenkins2415
    @benjenkins2415 4 роки тому +4

    3.5 years later...this is still this best tutorial on Sublime Text. Thanks!

  • @starthrashinferno1
    @starthrashinferno1 3 роки тому +1

    Can someone tell me how I can use a different version of python3 with sublime? My Sublime text is currently using python 3.6 and I need it to use python 3.8. HOw do I go about doing this?

  • @jaisingh-rj7lz
    @jaisingh-rj7lz 5 років тому +3

    Error trying to parse settings: Expected character in Packages/User/Preferences.sublime-settings:52:1
    getting this error after pasting the code in user seetings

    • @durantburner7428
      @durantburner7428 4 роки тому

      Did you fix this? I get this error whenever I add a package or run Sublime but my Sublime works perfectly fine and all the files are fine so I don't know what's happening.

  • @daishin8492
    @daishin8492 5 років тому +1

    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.

  • @ronikant896
    @ronikant896 7 років тому +3

    Hey I'm having trouble getting the colour code on my code I tried sublimeREPL and it didn't change anything... Any tips?

  • @ARoundThing
    @ARoundThing 4 роки тому +3

    Hey Corey, I am getting an error. In the package Anaconda, I've set Auto-formatting to true. But When I save my files, I get the error, "Autoformatting failed, Buffer not changed". What do I do?

    • @sakshamteji6115
      @sakshamteji6115 4 роки тому

      same error with me bro. did you manage to get it right??

    • @SandeepBilthare
      @SandeepBilthare 4 роки тому +1

      @@sakshamteji6115 Go to Preferences --> package settings --> Anaconda --> Settings -user. Remove the line that says python interpreter.
      Basically That is true for MAC and Linux only but not for windows.
      Once you remove that line, anaconda package will automatically detect the default path for python installed on your system.

    • @OstinNitso
      @OstinNitso 4 роки тому

      @@SandeepBilthare Thank you so much, it worked for my Win10!

  • @scottmurphys
    @scottmurphys 7 років тому +6

    Thanks for the video, it got me started on the path of setting up Python in Sublime. However, since you use a Mac and I use a Windows PC there were a few difference not covered. These differences also seem to be hard to find on the official sites. I personally finally found what I was looking for in the comments of your previous Python post.
    "Gurpreet Singh
    First, install anaconda for python 3.5 and in sublime text, tools, build systems, make new build system and save this to file and make the filename python.sublime-build
    {
    "cmd": ["C:\\Program Files\\Anaconda3\\python.exe", "-u", "$file"],
    "file_regex": "^[ ]File \"(...?)\", line ([0-9]*)",
    "selector": "source.python"
    }
    it will definitely work.
    Also directory can be different in your system. So to check python directory interpreter open cmd (window) [at the root] c drive level and type "where python.exe" (without the quotes)."
    Personally I installed Python 2.7 and 3.6 (64). Following the above video I made two files and saved them to my "C:\Users\SMurphy\AppData\Roaming\Sublime Text 3\Packages\User" folder and named them Python27.sublime-build and Python36-64.sublime-build respectively. All but the path was the same as Gurpreet Singh's example.
    {
    "cmd": ["C:\\Program Files\\Python\\Python36\\python.exe", "-u", "$file"],
    "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
    "quiet": true
    }
    I hope this give Windows users one more place to chance on an answer, and thank you Cory for your help.

    • @umarhussain1089
      @umarhussain1089 7 років тому +1

      Murph, you're a legend thank you!

    • @justinjustin4605
      @justinjustin4605 7 років тому

      Hi can you help me a little more i didnt quite understand what to do i get the [WinError 2]" problem

    • @scottmurphys
      @scottmurphys 7 років тому

      Make sure you have watched the video above from at least this point, ua-cam.com/video/xFciV6Ew5r4/v-deo.html
      I am assuming you already have a version of python installed, if not do so.
      Open a command prompt, (Start, cmd, Enter), go to your c root (cd\), type where python.exe, use the path for the version of Python you need if you have more than one.
      You may see a path like C:\Program Files\Python\Python36\python.exe, yet when putting the path into the file you need to make all the \ to \\, so in your file it will look like
      C:\\Program Files\\Python\\Python36\\python.exe
      I hope this helps.

    • @severluka045
      @severluka045 6 років тому

      Found a very useful video, i followed him and used / instead of \ or \\, works now. He also sets up interactive enviromvent ua-cam.com/video/rIl0mmYSPIc/v-deo.html

    • @kevinwatson1176
      @kevinwatson1176 6 років тому

      Exactly what I needed to know and well stated at that. Thanks for helping

  • @shivaprasadshirawar6235
    @shivaprasadshirawar6235 4 роки тому +2

    Can I do these coding in pycharm?? Because I'm getting the error that the system cannot find the file specified

  • @ophiacus4
    @ophiacus4 6 років тому +3

    I've been trying to get Python location added to sublime text on a Mac for about 4 hours and I can't get it to work

  • @BrianMcGrail-i8j
    @BrianMcGrail-i8j Місяць тому +1

    for some reason, my sublime text randomly started to default to Plain Text instead of Python and will not run a build unless I first save the file as a .py file. anyone know a fix for this? any help is appreciated cuz I've been troubleshooting all afternoon.

  • @juanmagm
    @juanmagm 6 років тому +3

    Great Dude, thanks a lot BRO!!!

  • @jujubee516
    @jujubee516 6 років тому

    Thank you so much for your videos!!

  • @tbd317
    @tbd317 6 років тому +5

    As of today 27 August, 2018, I decided to take up coding as a hobby. After a bit of reading I decided on Python. I searched the web high and low for a solid tutorial on how to get started, to no avail. I am a Cyber Security guy by trade, and figured coding would be similar to pushing patches in BigFix. I was definitely wrong. I cannot wait to get this new hobby up and going, as well as, diving deeper into your videos. Thank you!!

    • @coreyms
      @coreyms  6 років тому +2

      Glad to have you aboard! Programming can be frustrating at times, but if you stick with it then it is definitely rewarding (and fun) in the long run.

    • @olion2989
      @olion2989 5 років тому

      How did python go for you Tyler?

  • @yaoliu7034
    @yaoliu7034 6 років тому

    May I suggest to add a line of "env": {"PYTHONIOENCODING": "utf8"}, in your sublime.build file? It was frustrating that I couldn't get some of my codes to run, while they are fine from terminals, because of non-ASCII characters. Excellent tutorials, btw! Sublime text should sponsor you for making all your videos in their editor.

  • @affanali9966
    @affanali9966 7 років тому +4

    I am getting this error
    process can not start a new anaconda JsonServer in the operating system because:
    Anaconda can not spawn a new process with your current configured python interpreter(python)
    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
    I get this error whenever I launch sublime text 3 and because of this I cant use anaconda and when i write something e.g print(x) it does not give results but instead goes to the other line I think its problem with the code you gave on your github page.
    please reply fast

  • @jasonsung2711
    @jasonsung2711 5 років тому +2

    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"

    • @aicedd
      @aicedd 4 роки тому

      Same thing for me. And I didn't find a way to fix that :(

  • @victornnah3920
    @victornnah3920 7 років тому +3

    Can you make a video on a build system for Python 3.6?

    • @coreyms
      @coreyms  7 років тому +1

      Have you watched my previous video on Sublime Build Systems? It's basically the same process as that video, but you would just use the location of Python 3.6 instead of Python 3.5

    • @victornnah3920
      @victornnah3920 7 років тому

      It doesn't work when I try to build my program.It just says building and doesn't show anything.

    • @Beyond-Antares
      @Beyond-Antares 6 років тому

      Are you on windows? The location to your python directory is key.

  • @eliavozeri9216
    @eliavozeri9216 Рік тому +1

    Just letting other users know, on windows there is a Preferences tab all the reset is the same

  • @opetyr
    @opetyr 7 місяців тому +1

    Looks like this isnt as helpful since you removed many of these things from your github

  • @nickzu12
    @nickzu12 3 роки тому +1

    So, ethically should I buy a license? I am just trying to teach myself how to code is all

  • @8kubera
    @8kubera 5 років тому +1

    Beautiful

  • @samadabdul6551
    @samadabdul6551 5 років тому +1

    The video was awesome,i have follow full video but at some time i get stuck like...The github page you open and copy the codes .....there is an error in that page .It is not opening and i am unable to copy those code can you please help me ......or else you can send me that code file to my g mail it would be a great help from your side to me ......And i am a beginner so i dont want drop any thing topic...
    THANK YOU

    • @minhnghiaphan4884
      @minhnghiaphan4884 5 років тому

      github.com/CoreyMSchafer/dotfiles/blob/master/settings/Preferences.sublime-settings

  • @santoshsundar1186
    @santoshsundar1186 5 років тому

    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.

    • @coreyms
      @coreyms  5 років тому +1

      Yes, I've removed that from my settings. I'm not sure what I was intending to ignore when I first added that.

    • @santoshsundar1186
      @santoshsundar1186 5 років тому

      @@coreymsIn any case awesome video. I have set up my IDE and works like a charm..

  • @alwaysindistress8114
    @alwaysindistress8114 4 роки тому +2

    I am having issues with 21:36 build system. The error is "the system cannot find the file specified". How can I resolve this?

    • @ktjrox11
      @ktjrox11 4 роки тому

      I think you would have to change the file path mentioned to where you have installed the different versions of python. BTW this is only needed if you have to run codes on different versions of a language, otherwise Sublime would use the default installed path to the environment.

  •  4 роки тому +1

    My sublime text doesnt change colors when i type the code

    • @lukepurcell
      @lukepurcell 4 роки тому

      You have to tell Sublime to read your input as python code. To do this, select "plain text" in the bottom right corner of the window and change it to "python". Python should be right under "plain text" in the drop down menu.

    • @kojik4271
      @kojik4271 3 роки тому

      @@lukepurcell you helped me ty sir

  • @scifregizmoguy
    @scifregizmoguy 5 років тому +1

    Question: (SOLVED)
    Does anyone know how to stop the Anaconda package from converting tab indents to whitespace indents? It's quite annoying,
    Solution:
    Add to the ignore list the following:
    "W191",
    "E101",
    "E111"

  • @aviadavihubenita9153
    @aviadavihubenita9153 2 роки тому +2

    "Material Theme" doesn't appear :(

  • @notelectrohead
    @notelectrohead 5 років тому +1

    "Autoformatting failed! Buffer not changed" when I save file Anaconda does not format my code to pep8 compliant. Please Help.

    • @robmcgowan4055
      @robmcgowan4055 4 роки тому

      The latest Anaconda.sublime_settings file from Corey's github adds a line for the python interpreter. I had to changed this to "python_interpreter": "~/anaconda3/bin/python". Not sure if this is right, but it worked. I'm using Windows WSL Ubutnu .

  • @victorkrook9251
    @victorkrook9251 5 років тому +2

    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?

    • @quezadajaning4850
      @quezadajaning4850 5 років тому

      i have the same error. think its the this part "python_interpreter": "/usr/local/bin/python3"

    • @robmcgowan4055
      @robmcgowan4055 4 роки тому

      @@quezadajaning4850 I think you are right. I used "python_interpreter": "~/anaconda3/bin/python". Not sure if this is right, but it worked. I'm using Windows WSL Ubutnu .

  • @tijnschutte
    @tijnschutte 5 років тому +1

    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?

  • @poderis1088
    @poderis1088 4 роки тому +1

    17:40 what to do if any balls do not pop up?

    • @ebla1n393
      @ebla1n393 4 роки тому

      the same issue( Idk how to fix it so anybody pls help us as this feature is quite useful

  • @hananiahasare8955
    @hananiahasare8955 4 роки тому +2

    Hi Corey,
    Please My autoformatting doesn't work. When You try to save the work, it gives you an error that
    "Autoformatting failed, buffer not changed."
    Please how do I solve this???

  • @exospectral6930
    @exospectral6930 Рік тому +1

    I had posted a problem here that I fixed by completely uninstalling everything from Python to Sublime text and reinstalling, and now have a new problem:
    anacondaST3: ERROR - Anaconda worker could not start because:
    connection to localhost:53853 timed out after 0.2s. tried to connect 7 times during 2.0 seconds
    check that there is Python process executing the anaconda jsonserver (dot) py script running in your system. If there is, check that you can connect to your localhost writing the following script in your Sublime Text 3 console:
    import socket; socket.socket(socket.AF_INET, socket.SOCK_STREAM).connect(("localhost", 53853))
    I have no idea what any of this means and the solutions I find online go way over my head. I have no idea what's going on. Can anyone please help?

  • @shannugamer2425
    @shannugamer2425 7 місяців тому +1

    2024, still you are the top

  • @reuben4075
    @reuben4075 3 роки тому +1

    if you are facing issues like "Autoformatting failed. buffer not changed"
    follow these steps:
    STEP 1 : go to preferences -> package settings -> Anaconda -> settings-User
    STEP 2 : change "python_interpreter" to "python"
    just like this
    "python": "C:\\Users\\user_name\\AppData\\Local\\Programs\\Python\\Python39\\python.exe"
    and SAVE now and restart sublime

  • @vitorwatanabee
    @vitorwatanabee 4 роки тому +1

    Shortcut to split screen in Windows: ALT + SHIFT+ 2

  • @nerva1150
    @nerva1150 7 років тому +1

    I like your video very much ! They are very helpful to me as a beginner of programming.Just want to say thank you

  • @Neithan007
    @Neithan007 4 роки тому

    In Windows:
    1) Go to Tools > Build System > New Build system.
    2) Paste the following, editing the path for your specific case (and notice the double "\\":
    {
    "cmd": ["C:\\Users\\NathaN\\AppData\\Local\\Programs\\Python\\Python38-32\\Python.exe", "-u", "$file"],
    "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
    "quiet": true
    }
    3) control +s to save as "Python3.8.sublime-build"
    4) now open a new file and write "print("Hello World")
    5) File > save as > Hello_World.py
    6) Tools > Build system > Python3.8
    7) "Control + b" should now run your Hello world program

  • @_mototime_4767
    @_mototime_4767 6 років тому +1

    Great Video!

  • @eidalkhaldi1811
    @eidalkhaldi1811 6 років тому

    so neat. Thanks a lot.

  • @RandomInternetDog
    @RandomInternetDog 4 роки тому +1

    Way too much yacking, get on with it.

  • @peterpouk6783
    @peterpouk6783 5 років тому

    please, can show me how I can build a machine learning website, I have been watching your youtube videos through and I have found you give brief intuition very quickly!

  • @nuridincersaygili
    @nuridincersaygili 2 роки тому +1

    excellent! is there an updated version of this settings?