How to add Python Path to Environment Variables in Windows 10

Поделиться
HTML-код
  • Опубликовано: 22 авг 2024

Комментарии • 472

  • @emilridulfo5754
    @emilridulfo5754 6 лет назад +6

    For people who get a list of what i think is directories after clicking on "path", just ´click new and insert the directory to python in there and it'll have the same effect. Did it with python 3.7 and this finally worked! I'm glad this was on the front of the google search thing. LIKE

    • @AusbrandNet
      @AusbrandNet 5 лет назад +1

      Yes, you are right. If just add PYTHON_HOME in path, it will not work. So I follow the 1st step and add the path of the whole DIR in system Variable with new button.

    • @emilridulfo5754
      @emilridulfo5754 5 лет назад

      AusbrandNet yes, thank you!

    • @neobrunacarpes
      @neobrunacarpes 5 лет назад +1

      THANK YOU SO MUCH OMG YOU JUST SAVED MY LIFE!

    • @emilridulfo5754
      @emilridulfo5754 5 лет назад

      @@neobrunacarpes no problemo my dude.

    • @SARCASMOOO
      @SARCASMOOO 5 лет назад

      Thank you it works now!

  • @thehistoryofhoon1117
    @thehistoryofhoon1117 7 лет назад +91

    you saved my life. you can have my first born child.

    • @MattieCooper10000
      @MattieCooper10000 5 лет назад

      Can you please share with me how you got Python to work? I _think it has something to do with the path, but I don't know what is wrong._

    • @rickandelon9374
      @rickandelon9374 5 лет назад

      ​@@MattieCooper10000 bro if you got problem like python is not recognized as internal or external command then just follow the video and RESTART THE COMMAND LINE!! because without restarting cmd, you will not get the saved settings to load

    • @MattieCooper10000
      @MattieCooper10000 5 лет назад

      @@rickandelon9374 Thanks for your response. I've done all of that and restarted my computer. Something is wrong with the Path; it does not open the way it does in every video on the subject.

    • @aureliocoeto765
      @aureliocoeto765 4 года назад +1

      Mood

    • @shijoj3856
      @shijoj3856 3 года назад +1

      Child of Surprise has been called.

  • @irinamelamud5930
    @irinamelamud5930 2 года назад +1

    Amazing tutorial!!! For the person with a 0 knowledge of how to get thru the Python setting steps its priceless. Thank you very much.

  • @katjaaa
    @katjaaa 5 лет назад +17

    THIS VIDEO literally saved my life oh gosh I I was going crazy trying to figure it out??? THANK YOU SO MUCH

    • @ArturSpirin
      @ArturSpirin  5 лет назад +2

      Anytime!

    • @ManAcadie
      @ManAcadie 4 года назад +1

      someone had a gun to your head and asked you to make the path work with python? that's insane!

  • @rodrigomaciel9461
    @rodrigomaciel9461 4 года назад +1

    Worked. Thank you. Another way to access the system configurations is: open the command prompt and type "sysdm.cpl". The same system configuration will pop on a window.

  • @zeeshanayub9706
    @zeeshanayub9706 5 лет назад +3

    Thank you so much for making this video. I was going crazy because I couldn't get python to work on my laptop. This solves my issue, I can't believe it was so simple!

  • @setsu2221
    @setsu2221 4 года назад +10

    Another method:
    If you already have python downloaded, then redownload the same python. Then press modify. In modify there will be two sections. In one of those, you can add python straight to the environment variables. You can also add other nice features. Cheers!

    • @terrenmoto9559
      @terrenmoto9559 4 года назад +3

      I have done the modify but the same message keeps popping home that it isn't recognized. :( I have also done everything in the video. Still isn't working.

    • @jazeerhussain66
      @jazeerhussain66 2 года назад +1

      It's worked,tnx

    • @kept0tolerance
      @kept0tolerance Год назад

      life saver

  • @kiruthigakumar8557
    @kiruthigakumar8557 4 года назад +1

    after viewing more than 20 tutorials i finally made it...but still i am not sure if it is properly done(my mistake)..but i am so happy...

  • @mengh1980
    @mengh1980 6 лет назад +15

    I finally got it worked, you need to run cmd as Adminstrator.

    • @mikums12
      @mikums12 5 лет назад

      This was my issue too! Annoying.

    • @michaelg3480
      @michaelg3480 5 лет назад

      @@mikums12 HOLY SHIT, yeah. this pissed me off. finally got it to work

    • @michaelg3480
      @michaelg3480 5 лет назад

      still not working when i'm trying to do node installs though

    • @spike7112ify
      @spike7112ify 5 лет назад +1

      How?

    • @maganhassan2627
      @maganhassan2627 5 лет назад

      @@spike7112ify i like to know this too I cannot get this to work for my computer to know where the python interpreter is.

  • @vikingghost117
    @vikingghost117 Год назад

    I was in a whole other world of messed up.... years ago I apparently made a python folder on my desktop and installed it directly into there. So when I started reinstalling python today in the proper location on my computer, the installation worked, but when I'd go to type "pip --version" it wouldn't give me an error, and it wouldn't execute the command either. It would just enter down again, and display my gitbash current directory with a new clean line under it (hope that makes sense).
    Thanks for your tutorial! I had to figure out some extra crap on my own to clean up my mess, but basically my solution was, find the extra paths that were auto created pointing to my desktop folder with python installed... delete the extra path... add the new path... AND STILL "pip --version" behaved the same way as described above!
    My ultimate final solution was to completely delete the extra python folder from my desktop. After that "pip --version" finally worked!
    Couldn't have gotten to that final solution without the help getting me to the new path variables before! Thanks a million! (p.s. using Windows 11)

  • @007Hazmatt
    @007Hazmatt 6 лет назад +4

    THANK YOU. Everything else that turned up on Google didn't work and now it does.

  • @maganhassan2627
    @maganhassan2627 5 лет назад +8

    Guys I fixed the issue of running python on my command line program lool finally. Basically it looks like I am able to run python on Windows powershell only as admin most of the time plus one thing no one told me is that when you specified to Windows where python is on my computer via the python directory & the scripts folder (I separated those 2 addresses by a semi colon in that python path user variable I created & on the system path variable I added the variable name like this %PYTHON_HOME% just like the tutorial says), on a windows 10 computer, which I use, you need to type "py" instead of "python" to load up the python shell. Type for example, "py --version" instead of "python --version" to print out on the terminal window the python version you have on your PC. Lol this is dumb Microsoft changed that for windows 10 PCs but hey it's works now for me & it's something I need to get used to from now on. Hope what I said was helpful to guys.

    • @maganhassan2627
      @maganhassan2627 5 лет назад

      oh yeah by the way it looks like typing "py" on the command line program works well with windows 8 PCs too. I also saw online if you got python version 3.6 or later this works too.

    • @maganhassan2627
      @maganhassan2627 4 года назад

      @Electro_blob 2 by looks of it no

    • @Zomann
      @Zomann 2 года назад

      Saved Me

  • @Gennethel
    @Gennethel 6 лет назад +2

    this helped me add Atom to PATH after it didn't work out during installation, thanks!

  • @matth4577
    @matth4577 4 года назад +1

    Still works!!!
    Instead, now you just have to put the same link into the system variables. There will be a list.

  • @chaitanyasai6313
    @chaitanyasai6313 4 года назад

    I checked all over the internet for this, but Finally got a result with error . Thanks a Ton

  • @anindian4601
    @anindian4601 4 года назад +1

    Thank you bro, i got confused by other youtubers but u explained nicely, i solved my pro thanks a lot.

  • @user-ry8og3ze8h
    @user-ry8og3ze8h 2 года назад +1

    Боже спасибо тебе огромное! Полторы недели я искал решение этой проблемы... + ещё в Windows 11 изменённый интерфейс.

  • @bluntfist
    @bluntfist 5 лет назад +2

    Short and sweet. This is the best kind of tutorial!

  • @ElChelaila
    @ElChelaila 2 года назад +7

    when i click "edit" on the second "path", it opens a big window where it shows differents enviorements. Which one should i choose.
    They are this:
    C:\Program Files (x86)\Common Files\Oracle\Java\javapath
    C:\ProgramData\Oracle\Java\javapath
    %SystemRoot%\system32
    %SystemRoot%
    %SystemRoot%\System32\Wbem
    %SYSTEMROOT%\System32\WindowsPowerShell\v1.0\
    %SYSTEMROOT%\System32\OpenSSH\
    WHICH ONE SHOULD I EDIT?

    • @francescot.2743
      @francescot.2743 2 года назад +2

      Hi, just add it, the latest cell on the bottom should be editable: copy your link there.
      I guess this video got a little older and more thank one path can be provided. Hope it helps.

  • @bjorn7427
    @bjorn7427 4 года назад +3

    I would like to say thank you for this video, it helps me a lot . It is short and easy to understand. I hope you would make more vids in the future. God bless you

    • @ArturSpirin
      @ArturSpirin  4 года назад +1

      Hi Brian, thank you for the kind comment, much appreciated. God bless.

  • @AkashDhar
    @AkashDhar Месяц назад

    Explaining properly and clearly is a talent and you have it

  • @novicetech1
    @novicetech1 6 лет назад +5

    This was super helpful. Everything work perfectly on the first try. Thanks a million.

  • @crispymaymays6892
    @crispymaymays6892 7 лет назад +1

    Thank you. Every other "tutorial" was crap and you did it the best way :)

  • @bensondavies7716
    @bensondavies7716 6 лет назад +1

    Can't tell you how much I appreciate this video. Thanks for sharing the knowledge.

  • @jehanbhathena6270
    @jehanbhathena6270 3 года назад +2

    Cant thank you enough sir.The method worked perfectly fine,it felt like magic.

  • @jeanlouis5966
    @jeanlouis5966 7 лет назад +1

    Mr. Spirin, you are wonderful. THANK YOU for making this video available to us. It was indeed helpful.

  • @fhtem7828
    @fhtem7828 6 лет назад +2

    If you're still having trouble, make sure that you're copying the actual python program, instead of a shortcut. To find the actual program location, right click the shortcut > Open file location. I was still having trouble until I noticed this.

    • @rafaelmuniz5782
      @rafaelmuniz5782 6 лет назад

      You the real MVP for this one, thanks

    • @fredrikwestberg9492
      @fredrikwestberg9492 5 лет назад

      Thanks! Was so sure I was addressing the file but it was a (very long) short cut!

  • @polarsphere5106
    @polarsphere5106 4 года назад +1

    You Sir deserve a medal. Good Job!

  • @suryamohangupta1968
    @suryamohangupta1968 5 лет назад +21

    Thanks a lot man!!! it start with typing py in cmd instead of python

    • @lukasc2621
      @lukasc2621 5 лет назад +2

      THANK YOU you ended a life's worth of frustration

    • @aholmes1397
      @aholmes1397 5 лет назад

      idk why this idiot didnt include this in the video, thanks so much

    • @MinhNguyen-mp5vn
      @MinhNguyen-mp5vn 4 года назад

      Thank you so much man!!!!

    • @theodornak
      @theodornak 4 года назад

      you are goddamn right man. i don't know why there is a difference in our pcs but there is.

    • @satyaanveshranganadham3115
      @satyaanveshranganadham3115 4 года назад

      Thank you Man. I was so frustrated as to why it wasnt working

  • @qzorn4440
    @qzorn4440 Год назад +1

    this will help if the install to Window's path box was not clicked. 😎 Thank you.

  • @redshift3639
    @redshift3639 2 года назад +1

    I get a different screen for part of the video, i think win 10 update must have changed the screen! But I figured it out using the help of this video thanks!

  • @jacobp6891
    @jacobp6891 4 года назад +1

    Thank you, much easier to follow than some tutorials. Plus it worked!

  • @HacenSIDIQ
    @HacenSIDIQ 3 года назад +3

    thank you for those who found a bunch of lines in path just clid "edit text " and will be just like in the video

  • @carabidus
    @carabidus 6 лет назад +1

    Thanks, Artur! I'm setting up Komodo Edit and this worked like a charm.

  • @bowen4505
    @bowen4505 5 лет назад +2

    very useful. But if you don't have the same "path edit" thing like him click the "edit text" button then there you go. have fun.

  • @clarel1243
    @clarel1243 5 лет назад +7

    omg bless you this was exactly what I needed!

  • @DanielS-wu4sq
    @DanielS-wu4sq 4 года назад +1

    Finally just what I was looking for!! thanks a lot!

  • @suhasdhokle9585
    @suhasdhokle9585 6 лет назад

    Initially faced few issues but It worked for me. Thanks

  • @PSantyago
    @PSantyago 3 года назад +1

    Excelent, Thanks man, greetings from Venezuela.

  • @harshshinde7469
    @harshshinde7469 4 года назад +1

    You are a god bro. I was gonna give up everything! thx man

  • @fryfang5007
    @fryfang5007 5 лет назад

    Works like a champ!
    Now I can run python on any drives!

  • @johngrid9799
    @johngrid9799 3 года назад +1

    9 tutorials failed, this worked

  • @Chris-qg2un
    @Chris-qg2un 5 лет назад +1

    Thanks Artur. This was quick and simple.

  • @shaggy5358
    @shaggy5358 3 года назад +14

    when I type python in the cmd it just opens me the microsoft store lol

    • @rifqiraihanlazuardi9222
      @rifqiraihanlazuardi9222 3 года назад

      me too

    • @MrFemman
      @MrFemman 3 года назад +6

      Just type "py"

    • @henryzhang3097
      @henryzhang3097 3 года назад +2

      @@MrFemman yea some reason py works instead of python

    • @fabian11235
      @fabian11235 3 года назад +1

      @@henryzhang3097 had the same problem its a win 10 setting. Type "Manage App Execution Aliases" into the search bar and unselect the aliases in the setting window.

    • @henryzhang3097
      @henryzhang3097 3 года назад

      @@fabian11235 yea figured it out, it's a shortcut windows takes

  • @warisahrari
    @warisahrari 4 года назад +1

    Thank you very much..I was very annoyed with the problem...you make me happy.

  • @nicholasbarning8250
    @nicholasbarning8250 6 лет назад

    I just did exactly what you said and it worked swimmingly, thanks you!

  • @tomaguilar7974
    @tomaguilar7974 3 года назад

    Thank you Artur. This worked for me following your instructions.

  • @epicnessproductionsllc.7638
    @epicnessproductionsllc.7638 6 лет назад +10

    i just dont understand why nothing will work for me
    Edit: i figured out how to make it work. If youre still having trouble after this simply combine this method and the other method of windows 7 and itll work

    • @MrDr3wX
      @MrDr3wX 5 лет назад +1

      ruclips.net/video/dU_ca27EGT8/видео.html Yep. combined what I had for these two videos to get it to work. Instead of using %PYTHON_HOME% in the edit path section. add the file location C:\...... thanks guys

  • @vaibhavkrkm
    @vaibhavkrkm 4 года назад

    I have installed two Python packages in my PC, one is 32 and another is 64 bit, I was trying to set path for my 32 bit Python, I changed the path in my PC's HP Variables, instead of System variables, and that worked, I added the new path in System variables also as u said and edited the Path variable also, by the way
    Thanks anyways :)

  • @leonardotorreao1193
    @leonardotorreao1193 3 года назад +1

    Worked for me, really helpful. Thank you, sir!

  • @pujadhirwani2248
    @pujadhirwani2248 3 года назад

    Literally best and helpful video man! Thanks a million for this😀

  • @curtain300
    @curtain300 4 года назад +1

    you are life saviour....other videos for fixing path variables are a bit complex

  • @sarathchandra8583
    @sarathchandra8583 5 лет назад +2

    Hi bro but this doesn't work for me.

  • @noamills1130
    @noamills1130 2 года назад

    Super helpful! Here's a problem I ran into and how I resolved it. When I opened the file explorer, the side bar (with quick access, this pc, etc.) was missing. So, I selected the View tab, then the Navigation pane, then unchecked and re-checked the "navigation pane" option.

  • @deogratiassaidi2874
    @deogratiassaidi2874 4 года назад +1

    You are the King, thanks.

    • @ArturSpirin
      @ArturSpirin  4 года назад

      I'm no king but you are welcome!

  • @rocketplays8759
    @rocketplays8759 7 лет назад

    Thanks man you're a legend I was stuck on this for a good 2 hours lol

  • @copdatchoppa
    @copdatchoppa 2 года назад +1

    When I want to edit path, a bunch a window with a bunch of files opens up.
    The files are: %SystemRoot%\system32, %SystemRoot%, %SystemRoot%\System32\Wbem, %SYSTEMROOT%\System32\WindowsPowerShell\v1.0\, %SYSTEMROOT%\System32\OpenSSH\, C:\Program Files
    odejs\
    Which do I edit??

  • @ionutnicoara9754
    @ionutnicoara9754 7 лет назад

    Thanks Man u saved my life . Nice work ! Keep on doing it :)

  • @Nukemumg
    @Nukemumg 7 лет назад +6

    Finally, god bless

  • @divyas3217
    @divyas3217 5 лет назад +2

    it worked for me....thank u sooooo much

  • @ArmandruiXD
    @ArmandruiXD 7 лет назад

    simplest tutorial out there, thank you!

  • @mayankgupta9841
    @mayankgupta9841 Год назад +1

    If you are wondering Why A big screen coming after clicking to the second path then simply add NEW and paste %PYTHON_HOME% in that then click Ok view it again to make sure a new cell added to it called %PYTHON_HOME%. and now very important simply go back by SAVING all the changes and dont open cmd before saving that after all that open cmd and type Python.....GOOD TO GO!.

  • @ethanlee9633
    @ethanlee9633 6 лет назад +1

    I have Python installed on F drive. How do i set PATH to F drive? I copied the path to F drive and it still wont work.

  • @chineduochuba1813
    @chineduochuba1813 3 года назад +1

    Thanks, but Pls how do I locate the main folder of this environment variables (PATH, TEMP, TMP) in which directory can i locate them as a folder name.

  • @RahulSharma-ez7yb
    @RahulSharma-ez7yb 5 лет назад +1

    God!! Where were you all this time

  • @samratbarat19
    @samratbarat19 4 года назад

    Worked . But, just wanted to clarify one thing, I followed every step as you said in the vid, and when you came to the cmd prompt and typed python the program version came right after your typing the word "python". Whereas, in my case when I came to this step, and typed python and pressed enter , all of a sudden Microsoft store popped up asking me to install Python 3.8 ( Developer tools)
    I have already installed Python from python.org. the only difference I observed was the path where I have installed python , it was under c:/ directly and not under users/../ app data/local/programs. I changed the path first and edited the environment variable as you did, and the system didn't cry showing errors, but I didn't understand why did Microsoft store pop up this Python 3.8 (Developer Tools) window when Python was already installed. It was a saviour though, it did bring the python prompt on my PC as was in yours. But, I truly didn't understand what happened??
    A bit explanation would help because I am from a different Science background. Thanks for a very engaging video . Subscribed to your video channel, please keep adding such video s particularly Python and Windows OS system issues.

  • @revanthsivanantham6571
    @revanthsivanantham6571 4 года назад +1

    Thank you so much for this video..very useful...

  • @adeltonwilliams3033
    @adeltonwilliams3033 7 лет назад

    Thank you so much for this video really clear and concise instructions

  • @MattUK2007
    @MattUK2007 7 лет назад

    Excellent video. Very informative. Thanks very much.

  • @pnk
    @pnk 4 года назад

    A easy way to work with system enviorment on windows is just using python-dotenv then you can use .env file and you are up and running and don't need to remeber to delete system env after you finished

  • @lizziethelemon
    @lizziethelemon 2 года назад

    Thank youuuuu! You're the best! subbing for this tutorial!

  • @dancemitronika
    @dancemitronika 3 года назад +1

    This was so helpful , thank you 😊

  • @MrDJZawQ
    @MrDJZawQ 5 лет назад

    Just what i was looking for

  • @kronoschatbot5665
    @kronoschatbot5665 5 лет назад +1

    It helps me a lot. Thanks!

  • @himanshusingh2522
    @himanshusingh2522 4 года назад +1

    Helpful content thanks!!

  • @ompitroda8744
    @ompitroda8744 3 года назад

    Thanks you for solving my problem.

  • @ranajunaidahmad2294
    @ranajunaidahmad2294 4 года назад +1

    GOD BLESS YOU, after three stressful days you have solved this basic issue :D

    • @ArturSpirin
      @ArturSpirin  4 года назад

      Glad it helped. Thank you for the kind words!

  • @michaelg3480
    @michaelg3480 5 лет назад +6

    why does something so simple not work?

    • @maganhassan2627
      @maganhassan2627 5 лет назад

      if you are using a windows 10 PC try to look my other comment from this video for a solution I finally fixed the issue lol.

  • @sohrabgh5448
    @sohrabgh5448 5 лет назад +1

    Tnx man. You saved my life and time ;)

  • @ahmedhossam9892
    @ahmedhossam9892 6 лет назад

    Thank you so much. It worked perfectly.

  • @MattieCooper10000
    @MattieCooper10000 5 лет назад +2

    My system is not recognizing python...when I click Edit on Path it does not display as it does in this video :0(

    • @ashleshakharwale2637
      @ashleshakharwale2637 5 лет назад +2

      don't go for edit option in path. Click on 'New', then add %PYTHON_HOME%. Now you can see the python executed in cmd. :)

    • @prathamsharma204
      @prathamsharma204 4 года назад

      @@ashleshakharwale2637 nah its not working for me too

  • @AlabhyaSpurs
    @AlabhyaSpurs 5 лет назад

    Just curious about what that 4th icon pinned to the task bar is.... that tiny jet plane. Otherwise, thanks for the video. Super helpful.

  • @DeepakKumar_297
    @DeepakKumar_297 4 года назад

    thanks for your help, Your post solved my issue

  • @tim3293
    @tim3293 4 года назад

    Thanks for the sort video!

  • @mahikris81
    @mahikris81 5 лет назад +1

    Neatly explained ...

  • @ylcsl4378
    @ylcsl4378 3 года назад

    Worked for me! Thank you!

  • @AdrianJDeNiz
    @AdrianJDeNiz 6 лет назад

    Thank you so much video was a great help!

  • @aynick1
    @aynick1 5 лет назад +1

    It worked thanks a lot :)

  • @MelchizedekBebeko
    @MelchizedekBebeko Месяц назад

    Thanks, very helpful.

  • @bakytkamchybekovichstndv1440
    @bakytkamchybekovichstndv1440 6 лет назад +1

    Thank you for your video.

  • @Siddharth_Tanwar
    @Siddharth_Tanwar 5 лет назад

    It worked like magic

  • @ananditasaxena1411
    @ananditasaxena1411 4 года назад +1

    Thank you so much you are a lifesaver !!!!!

  • @trinhcuong9188
    @trinhcuong9188 5 лет назад +1

    Thanks u, it is very good from you!

  • @BeStacked100
    @BeStacked100 3 года назад

    Thanks. 100% it worked.

  • @rabbiislamdorjoy9371
    @rabbiislamdorjoy9371 2 года назад +1

    You are really greate bhai

  • @saikrishna-bm5bf
    @saikrishna-bm5bf 4 года назад +1

    Ghoshhhh man awesome 👍

  • @traveltechgaming-ttg6905
    @traveltechgaming-ttg6905 5 лет назад +1

    Thanks Man. Appreciated

  • @garvit1748
    @garvit1748 7 лет назад +1

    thx Artur for this video.

  • @Carlos-td3oz
    @Carlos-td3oz 5 лет назад +1

    Thanks! Really helpful

  • @aryub5851
    @aryub5851 3 года назад

    which path did you copy you didn't mind us showing.