Setting up a Python Development Environment in Sublime Text

Sdílet
Vložit
  • čas přidán 14. 02. 2017
  • 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/CoreyMSchafer/dotf...
    Source Code Pro Font - fonts.google.com/specimen/Sou...
    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/shop/coreyschafer
    ▶️ You Can Find Me On:
    My Website - coreyms.com/
    My Second Channel - / coreymschafer
    Facebook - / coreymschafer
    Twitter - / coreymschafer
    Instagram - / coreymschafer
    #Python

Komentáře • 897

  • @drewconroy5938
    @drewconroy5938 Před 6 lety +575

    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  Před 6 lety +15

      Thanks, Drew!

    • @ChitranshuVashishth
      @ChitranshuVashishth Před 5 lety

      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 Před 5 lety +1

      Haven't watched it yet but I believe you!

    • @JorgeMarquezRave
      @JorgeMarquezRave Před 5 lety +1

      Agree 100%

    • @gethsun1
      @gethsun1 Před 4 lety

      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

  • @tajindersinghdhoot
    @tajindersinghdhoot Před 6 lety +324

    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

  • @snyredbaron21
    @snyredbaron21 Před 6 lety +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!

  • @2494capn
    @2494capn Před 5 lety +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!

  • @johnsabini3218
    @johnsabini3218 Před 5 lety +30

    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.

  • @MyTube4Utoo
    @MyTube4Utoo Před 6 lety +22

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

  • @benjenkins2415
    @benjenkins2415 Před 3 lety +4

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

  • @anshulmcamanit
    @anshulmcamanit Před 6 lety +14

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

  • @user-vi1tw1xw7r
    @user-vi1tw1xw7r Před 7 měsíci +2

    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.

  • @novicetech1
    @novicetech1 Před 6 lety +1

    Thanks Corey. I love Sublime Text3 and haven't been using it because I didn't really know how to set it up as a newbie. This really helps. Now I don't have to dink around with PyCharm or Visual Studio Code. I have nothing against those tools, but I'd much rather use Sublime Text while I'm learning and just trying things out. I really appreciate this tutorial and you thorough mastery of the subject matter. Kudos, dude.

  • @JoshuaDHarvey
    @JoshuaDHarvey Před 4 lety +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

  • @phillinolph
    @phillinolph Před 7 lety +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.

  • @23TrevorE
    @23TrevorE Před 7 lety +20

    Bloody awesome video, mate!

  • @petitehobbitte
    @petitehobbitte Před 5 lety

    Thank you so much. Very clear. There was a problem with the server tonight and I couldn't install any packages, but fortunately someone posted an old link to a stable url on a forum and I was able to add it to my user profile, temporarly. Now I can start learning Python (I know C and JS) to better serve my patrons at my library - I'm a librarian. Cheers!

  • @muhammadmz8791
    @muhammadmz8791 Před 7 měsíci +1

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

  • @sli6181
    @sli6181 Před 4 lety +1

    I have watched several videos and I must say this video is the best! This helps a lot! Thank you!

  • @Edditoria
    @Edditoria Před 4 lety +1

    Your tutorial is very well-made. I like how you explain things with extra tips/good-practices in simple words. I can understand what you say without subtitles . Nice work!

  • @ThePerlgeek
    @ThePerlgeek Před 5 lety +1

    Corey , you are the best ... always wanted a theme that you are using and i got it configured today .... Thanks a lot of sharing, keep up the great work!! :)

  • @Aditya-hk4je
    @Aditya-hk4je Před 4 lety

    Corey is the first person to appear for any of my programming CZcams searches

  • @michaelhughes5946
    @michaelhughes5946 Před 5 lety +1

    My good ness man, this tutorial is amazingly absolute! Thank you for this... so freakin' much!

  • @benuchie
    @benuchie Před 6 lety +3

    excellent (comprehensive and clear) video 🙌🙌🙌
    many thanks 🤓🤓🤓

  • @ipbloke
    @ipbloke Před 7 lety

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

  • @curacaojay
    @curacaojay Před 3 lety

    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.

  • @tbd317
    @tbd317 Před 5 lety +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  Před 5 lety +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 Před 5 lety

      How did python go for you Tyler?

  • @bogdannica9893
    @bogdannica9893 Před 2 lety

    really great job. I use sublime for a while. Recently I restarted python programming and using sublime for it is a real help.

  • @mlytle0
    @mlytle0 Před 6 lety

    Great videos, this one in particular has kept me from giving up on python programming. The Anaconda plugin you recommended has allowed me to understand the spacing issue much better..was pulling my hair out because my trial code kept failing, now I know why..THANK YOU.

    • @coreyms
      @coreyms  Před 6 lety

      Awesome. Glad to hear you're sticking with it!

  • @stardusts42
    @stardusts42 Před 6 lety +1

    Detailed and helpful! Thanks a TON!

  • @meatyout
    @meatyout Před 5 lety +1

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

  • @johnnydamilatis8281
    @johnnydamilatis8281 Před 5 lety +1

    Clean video ,thanks for the sublime settings man .

  • @monagulapa3022
    @monagulapa3022 Před 4 lety +1

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

  • @muralip9701
    @muralip9701 Před 3 lety

    Great instructional video. Precise, concise and to the point!

  • @ashwatson2142
    @ashwatson2142 Před 6 lety

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

  • @SimasAlan
    @SimasAlan Před 4 lety

    Hello Corey, i really enjoy ur videos, i've learn a lot.Just want to thank you for the great quality videos and content!

  • @22ttiimmeess
    @22ttiimmeess Před 4 lety +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 Před 4 lety +2

      my hero

    • @JohnDoe-fy9cv
      @JohnDoe-fy9cv Před 3 lety

      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.

  • @yeefangxiao2953
    @yeefangxiao2953 Před 6 lety +1

    Hi Corey, Thank you so much for all the tutorials! They are all high quality in content and presentation!

  • @SidTheBot
    @SidTheBot Před 6 lety +1

    Thanks for making this video. This help me alot. Your github prefrences are nice.

  • @allenmudrovcic
    @allenmudrovcic Před 7 lety +39

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

  • @ravishankar-eu2ij
    @ravishankar-eu2ij Před 6 lety

    Everything you need to know about python development environment in sublime text.
    Awesome video (Y)

  • @nerva1150
    @nerva1150 Před 7 lety +1

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

  • @drygordspellweaver8761

    Marianna theme with pure black backround is what I opted for. Beautiful theme!

  • @user-il3bk5hv8s
    @user-il3bk5hv8s Před 5 lety +1

    Excellent video!, hope more future videos about those silly things that we can be missing!

  • @itron3295
    @itron3295 Před 5 lety +1

    Completely awesome video! Great job!

  • @tymothylim6550
    @tymothylim6550 Před 3 lety

    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! :)

  • @realmsgaming
    @realmsgaming Před 5 lety +1

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

  • @ryanpatton1795
    @ryanpatton1795 Před 4 lety +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

  • @jitendraadtani8920
    @jitendraadtani8920 Před 5 lety +1

    You are awesome man! Thank you so much for sharing this.

  • @danielxie4636
    @danielxie4636 Před 6 lety +2

    Best Videos on python, thanks man

  • @woolfy02
    @woolfy02 Před 2 lety

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

  • @sriharivishnubhatla
    @sriharivishnubhatla Před 6 lety +1

    Hey! Thanks for the video...
    By the way, at 14:50 that shortcut to enable split screen mode for a windows machine is "alt+shift+2"

  • @ParvizKermani
    @ParvizKermani Před 4 lety +1

    Very useful and clear.
    Thank you!

  • @syedabdulsalam4659
    @syedabdulsalam4659 Před 4 lety +1

    Must have channel for everyone working in python and linux.

  • @RunFranticBeauty
    @RunFranticBeauty Před 7 lety

    Great video! I'm really new to coding and I found this really useful!

  • @loganhuang3704
    @loganhuang3704 Před 6 lety

    Thanks Corey Schafer! Very exhaustive explanation 谢谢

  • @zhanpengzhou3492
    @zhanpengzhou3492 Před 5 lety +1

    keep on going man really thanks for your excellent work

  • @selenewaide8994
    @selenewaide8994 Před 6 lety

    Another awesome tutorial from you - many thanks

  • @saifal-badri
    @saifal-badri Před 4 lety +1

    This is fantastic, subscribed forever!

  • @soulofangel1990
    @soulofangel1990 Před 3 lety

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

  • @MyTube4Utoo
    @MyTube4Utoo Před 6 lety

    Extremely helpful. Thank you.

  • @nano7586
    @nano7586 Před 5 lety +1

    Thank you so much. This was so helpful.

  • @khandushinde8592
    @khandushinde8592 Před 7 lety

    Excellent work!! Great help for us!!!

  • @jumanjiwarlord
    @jumanjiwarlord Před 3 lety

    4 years later.... still useful. Sidebar Enhancement. very nice.

  • @imretuvi6829
    @imretuvi6829 Před 4 lety +2

    The best video for Sublime Text. I recently thought about switching to VS Code but as I really like Sublime Text I was looking for some enhancements and after setting up wit this I just love the design and packages!

  • @ihebhaboubi1570
    @ihebhaboubi1570 Před 5 lety +2

    your tutorials are the best

  • @machende1
    @machende1 Před 7 lety

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

  • @juanmagm
    @juanmagm Před 5 lety +3

    Great Dude, thanks a lot BRO!!!

  • @michaelciyke
    @michaelciyke Před 4 lety +1

    Thanks. You just helped me a ton!

  • @entrotlek
    @entrotlek Před 7 lety

    everything got a lot easier to read after you installed that font package

  • @joshuaf91
    @joshuaf91 Před 5 lety

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

  • @zeio-nara
    @zeio-nara Před 5 lety +1

    Perfect video, thank you

  • @abhinavsingh1531
    @abhinavsingh1531 Před 5 lety +2

    thank u for the video, btw awesome content

  • @danielitaabg
    @danielitaabg Před rokem

    Amazing Tutorial, thank you!

  • @JagabandhuSwain-jb
    @JagabandhuSwain-jb Před 6 lety

    very helpful video.. Thnx Corey :)

  • @jujubee516
    @jujubee516 Před 6 lety

    Thank you so much for your videos!!

  • @ovskihouse5278
    @ovskihouse5278 Před 9 měsíci

    I love what you did. Thanks

  • @OneShotKill3r
    @OneShotKill3r Před 2 lety

    Corey Schafer, thank you!!

  • @pmpintogil
    @pmpintogil Před 7 lety

    Good video, very helpfully.
    Thanks

  • @iaggocapitanio7909
    @iaggocapitanio7909 Před 4 lety +1

    Thanks, bro, very useful!

  • @ju1iawan
    @ju1iawan Před 3 lety

    This was a great tutorial and it helped me a lot, tysm!!!!!!

  • @julianmahler2388
    @julianmahler2388 Před 2 lety

    I hereby admit that I used sublime text for years and had no idea that you can build and run your code with it ☝️

  • @jerryren5139
    @jerryren5139 Před 5 lety +1

    Thank you so much, sir!

  • @ShubhankarD30
    @ShubhankarD30 Před 3 lety

    Thanks for helping!

  • @vladoportos
    @vladoportos Před 6 lety

    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.

  • @davidelliott9030
    @davidelliott9030 Před 3 lety +1

    Loved this tutorial. Since seeing a random CZcams 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.

  • @SimplyMe2010100
    @SimplyMe2010100 Před 6 lety

    Thank you so much.It is very helpful

  • @ZZZZZZZaaaart
    @ZZZZZZZaaaart Před 4 lety +1

    After this video I had to subscribe. Amazing video.

  • @Don_Modern_Ancestor
    @Don_Modern_Ancestor Před 5 lety +1

    Great Video. Thanks.

  • @vettomd
    @vettomd Před 5 lety +1

    Thanks for very useful video, love Anaconda.

  • @krishnagarg6870
    @krishnagarg6870 Před 4 lety

    Anaconda autoformatting option is really great!!

  • @tasoulman
    @tasoulman Před 6 lety

    Great Video. Also ""Install Package Control" is the last item in the Tools menu

  • @RobinTheHoodedMan
    @RobinTheHoodedMan Před 6 lety

    Nice video. Lots of going on my To-So list (lol). (Python newbie). Thanks to commenters too. Why re-invent the wheel..Thumbs Up

  • @lhzawk
    @lhzawk Před 3 lety

    Nice video,mate !

  • @eidalkhaldi1811
    @eidalkhaldi1811 Před 6 lety

    so neat. Thanks a lot.

  • @scottmurphys
    @scottmurphys Před 7 lety +7

    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 Před 7 lety +1

      Murph, you're a legend thank you!

    • @justinjustin4605
      @justinjustin4605 Před 7 lety

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

    • @scottmurphys
      @scottmurphys Před 7 lety

      Make sure you have watched the video above from at least this point, czcams.com/video/xFciV6Ew5r4/video.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 Před 6 lety

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

    • @kevinwatson1176
      @kevinwatson1176 Před 6 lety

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

  • @_mototime_4767
    @_mototime_4767 Před 6 lety +1

    Great Video!

  • @8kubera
    @8kubera Před 5 lety +1

    Beautiful

  • @ankithabhayan324
    @ankithabhayan324 Před 3 lety +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

  • @brisketbaron
    @brisketbaron Před 7 lety

    Try Text Pastry, if you haven't yet. Got that one today. Needed to define some huge const arrays and w it I got it done in a few minutes. You can use multi select (cmd+d) and paste sequences/patterns.

  • @Videostream787
    @Videostream787 Před 6 lety

    Thanks for marking Awesome Tuts, Mate! Can you make a Tut on progress bars using python?

  • @Vishwanathrawat
    @Vishwanathrawat Před 7 lety +1

    Hi Corey,
    Your python tutorial is awesome. I have watched all of them multiple times. I have just one request. The code is not clearly visible. Sometimes i can recognize whether it is { or [ or (. For new tutorials can you use different font type or bigger font type

  • @ultiumlabs4899
    @ultiumlabs4899 Před 5 lety

    Great tutorial Corey, as always, thanks. will you do video on setting up python for VisualStudioCode? and also waiting for your review on Sublime vs VisualStudioCode vs Pycharm..