Executing Python with Gvim

后端 未结 4 935
逝去的感伤
逝去的感伤 2020-12-06 13:04
  • open gVim.
  • then using the File Menu and MenuItem Open to open a file pi.py which has the following tiny script:

4条回答
  •  爱一瞬间的悲伤
    2020-12-06 13:30

    It seems your %path% environment variable doesn't contain your python installation path.

    Follow the following steps:

    1. Right-Click "My Computer"
    2. Choose "Properties"
    3. Goto the advanced settings
    4. Goto "Environment Variables"
    5. Select "PATH" and click on "Edit"
    6. Add the following to the end of the line: ";C:\python27\;" (without quotes)

    Note: change the directory to your python directory (could be c:\python30, for example)

    Save everything and then - Close vim and all CMDs and try again.

提交回复
热议问题