Adding Python Path on Windows 7

后端 未结 19 1943
盖世英雄少女心
盖世英雄少女心 2020-11-21 23:37

I\'ve been trying to add the Python path to the command line on Windows 7, yet no matter the method I try, nothing seems to work. I\'ve used the set command, I\

19条回答
  •  滥情空心
    2020-11-22 00:04

    I've had a problem with this for a LONG time. I added it to my path in every way I could think of but here's what finally worked for me:

    1. Right click on "My computer"
    2. Click "Properties"
    3. Click "Advanced system settings" in the side panel
    4. Click "Environment Variables"
    5. Click the "New" below system variables
    6. in name enter pythonexe (or anything you want)
    7. in value enter the path to your python (example: C:\Python32\)
    8. Now edit the Path variable (in the system part) and add %pythonexe%; to the end of what's already there

    IDK why this works but it did for me.

    then try typing "python" into your command line and it should work!


    Edit:

    Lately I've been using this program which seems to work pretty well. There's also this one which looks pretty good too, although I've never tried it.

提交回复
热议问题