Notepad++配置python运行环境步骤:
- 打开Notepad++ ->”运行”菜单->”运行”按钮
- 在弹出的窗口内输入以下命令:
我的conda中存在虚拟环境
(1) base
(2) pytorch_gpu
添加base环境至Notepad++中
cmd /k chdir /d $(CURRENT_DIRECTORY) & call conda.bat activate base & python $(FILE_NAME) & PAUSE & EXIT
添加pytorch_gpu环境至Notepad++中
cmd /k chdir /d $(CURRENT_DIRECTORY) & call conda.bat activate pytorch_gpu & python $(FILE_NAME) & PAUSE & EXIT