Set Spyder as default Python

后端 未结 4 2031
我在风中等你
我在风中等你 2020-12-05 07:57

I\'ve recently installed Anaconda (using the default settings) on Windows 7. When I try to open a .py file by double-clicking it, I get the Open with... option.

4条回答
  •  失恋的感觉
    2020-12-05 08:44

    You must create a spyder.bat file with the following content:

    start C:\path\to\Anaconda3\pythonw C:\path\to\Anaconda3\Scripts\spyder-script.py  %1
    

    Remember set the path where Anaconda is installed.
    Then, use the Open with... dialog and select your new spyder.bat batch file.
    It works on Windows 10 Home. I hope it works in Windows 7 too.

提交回复
热议问题