CMD opens window store when I type python

前端 未结 9 1857
天涯浪人
天涯浪人 2020-11-27 17:31

Today when I tryed to run a simple code on Sublime Text 3, the following message appeard:

Python was not found but can be installed from the Microsoft

9条回答
  •  天涯浪人
    2020-11-27 18:16

    You can manually add Python to windows path by doing this

    1. Start the Run box and enter sysdm.cpl

    1. Go to the Advanced tab and click the Environment Variables button

    1. Now you’ll need to locate the relevant Python paths

    Here is how a Python application path looks like:

    And this is how a Python Scripts path looks like:

    1. Select the Path variable, press edit and add both paths (Python application and Python Scripts)

    4a. If it doesn't show, press new instead of edit and fill the New User Variable box

    This is how my Variable value looks like:

    C:\Users\Ron\AppData\Local\Programs\Python\Python37-32;C:\Users\Ron\AppData\Local\Programs\Python\Python37-32\Scripts

    That’s it! You just added Python to the Windows Path.

    Source: Data To Fish

提交回复
热议问题