Adding Python Path on Windows 7

后端 未结 19 1945
盖世英雄少女心
盖世英雄少女心 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:30

    You need to make changes in your system variable
    -- Right click on "My computer"
    -- Click "Properties"
    -- Click "Advanced system settings" in the side panel
    -- Click on Environment Variable -- You will two sections of user variable and system variable
    -- Under system variable section search for the variable 'Path' click on edit and add
    "C:\Python27;" (without quotes) save it
    -- Now open command line type 'path' hit enter you will see path variable has been modified
    -- Now type python --version you will see the python version

    And it is done

提交回复
热议问题