Debug School

rakesh kumar
rakesh kumar

Posted on

How to install python and set Environment Variable

To fix this problem, you can either install Python from the Microsoft Store or add the Python installation directory to your system path.

To install Python from the Microsoft Store:

  1. Open the Microsoft Store.
  2. Search for "Python."
  3. Click on the "Python" app result.
  4. Click on the "Install" button
    .
    To add the Python installation directory to your system path:

  5. Right-click on "This PC" and select "Properties."

  6. Click on "Advanced system settings."

  7. Click on the "Environment Variables" button.

  8. Under "System variables," find the variable named "PATH."

  9. Click on "Edit."

  10. Add the Python installation directory to the end of the variable value, separated by a semicolon (;). For example, if the Python installation directory is "C:\Python310," you would add the following to the end of the variable value

;C:\Python310
Enter fullscreen mode Exit fullscreen mode

Click on "OK."
Click on "OK" again to close the Environment Variables window.

Image description

Step 1: open control panel

Image description

Step 2: Click system and security

Image description

step3:then click system

Image description

step4 : click advance system settings

Image description

Top comments (0)