Python Tutorial: How to Set the Path and Switch Between Different Versions/Executables (Windows)

In this Python Programming Tutorial, we will be learning how to set the PATH environment variable on the Windows Operating Systems.

Be one of the first 200 people to sign up with this link and get 20% off your premium subscription.

We will also learn how to modify the PATH in order to switch between different Python versions and executables. This is an essential skill that trips up many people when they first start learning Python and will definitely help you in many real-world situations. Let’s get started…

How to Set the Path on Mac and Linux:

✅ Support My Channel Through Patreon:

✅ Become a Channel Member:

✅ One-Time Contribution Through PayPal:

✅ Cryptocurrency Donations:
Bitcoin Wallet – 3MPH8oY2EAgbLVy7RBMinwcBntggi7qeG3
Ethereum Wallet – 0x151649418616068fB46C3598083817101d3bCD33
Litecoin Wallet – MPvEBY5fxGkmPQgocfJbxP6EmTo5UUXMot

✅ Corey’s Public Amazon Wishlist

✅ Equipment I Use and Books I Recommend:

▶️ You Can Find Me On:
My Website –
My Second Channel –
Facebook –
Twitter –
Instagram –



Xem thêm bài viết khác:


  1. for some reason i cant change by system info paths ?

  2. I really appreciate it. I was confused about how can change between different Python version and install packages. It was really helpful.

  3. When upgrading to a new version of python, how to install in the new version, all at once, the modules installed in the previous version?

  4. Thanks Corey! Hours of frustration resolved, could not get Atom or Sublime to work. All the best.

  5. is that worked if i using python 3.7 and 3.8 ?

  6. Sir , plz plz , make a vedio on pywinauto module .

    How to close runnning appliction through pywinauto
    From pywinauto import application

  7. For Windows 7 in PATH click edit and add a semicolon to the end of the line
    and paste the new path to it.Then click OK.

  8. I updated environment variable paths but still same error is coming. please help

  9. Hmmm, I formmated my laptop because I have three instances of python and I had no idea this was the way to fix it. My brain just got so perplexed when flask8 just installed itself in my anaconda python and ran it or didn't ran it from there and kept getting an error in Atom.

    I hate windows so much it is so confusing for a beginner like me. I think I'm just going to install anaconda this time and hope it is going to set the path to the version it's installing with it.

  10. I just stumbled onto this video as I was troubleshooting this exact issue and I couldn't be happier! Great content and easily explained!

  11. Thanks Corey! explained very clearly and now I'm able to run bat file's from cmd

  12. my sys.executable showing 'C:\ProgramData\Anaconda3\python.exe' this path which is not set at PATH. Now, what should I do? I use anaconda also for a different purpose.

  13. PSA for 2020: put python path ABOVE C:UsersOwnerAppDataLocalMicrosoftWindowsApps or else it won't work in cmd.

  14. THANK YOU SO MUCH!!! It took me 3 videos to get to this one and it made it so clear and easy to follow, unlike the other ones, thanks again for the help!

  15. This was so helpful. Thanks a lot dude!

  16. you are the best ever please continue with python how to buils apps … ans thanks for you

  17. Corey content is top notch always 🔥🔥👌 thanks again.

  18. Thank you Corey, this is exactly what I was looking for. Clear and easy to understand PATH breakdown. All the best!

  19. very helpful, but also rather boring. still like! P.S. nice videos on python

  20. (For my future reference)
    4:50 Adding directories to the path environment variable
    10:40 Find the location of the python you're using using 'sys'
    12:24 (Echo path)
    13:52 Installed a package but not found when importing it
    14:54 (Using pip show to get location of a package)
    16:50 When the CL and Editor are using different python versions (Sublime Text as example)

  21. Can't find the python folder

  22. Fantastic, however, my sublime text 3 says this Python was not found but can be installed from the Microsoft Store: It automatically takes me to the Microsoft Store. It's a real issue. Not much information about this. Plus I think my Windows os is deleting files.

  23. You saved my life! I love you!

  24. DUUUUUUUUUUUUUDE THANK U !! Finally someone solved this problem.

  25. Thanks alot for this video …. your videos always saves my day… thanks alot man..!

  26. Pure gold this video, like all your others I have watched on Python. Crystal clear, fast paced, direct to the target. Yours is definitely The BEST Python course I watched (and I have seen a few…). I lost a few days exactly on the path issue as I could not find a clear explanation on the path ORDER. Your video showed me exactly the detail I was missing. Thank you!!! I would include this in the playlist on videos about "Setting up a Python Environment".
    Paypal-ed you.

  27. Great and helpful videos. Thanks alot !

  28. How do you find the path to your python if you forgot where it is installed ?

  29. Great video I appreciate Thanks it helped me also by setting python path.

  30. This was so helpful!
    Corey really listen to his audience and produces high quality resources we all benefit from.
    Than you man!

  31. Is the process same when you want to use Anaconda with regular Python 3.7?

  32. Sweet Baby Jesus this is amazingly clear and helpful. Thank you!!!

  33. Excellent video! Subscribed

  34. this is magic. Amazing video. Do you also teach NLP and AI using python please. I would love to join the monthly package. Phenomenal videos

  35. AS I SAID BEFORE…. TREMENDOUS. Corey, you are covering all the bases! In my case, the coworker who wrote his program in 2.7 (boo!) 😀

  36. Thank you very very much!!!!

Leave a Reply

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