[英]Anaconda with Visual Studio Code
I'm trying to use Anaconda with VSCode for Python development, and running into some difficulties. 我正在尝试将Anaconda与VSCode一起用于Python开发,并遇到一些困难。
I followed the steps here: https://docs.continuum.io/anaconda/ide_integration#python-tools-for-visual-studio-ptvs 我按照这里的步骤操作: https : //docs.continuum.io/anaconda/ide_integration#python-tools-for-visual-studio-ptvs
I can confirm that Python works on my command prompt, and thus I believe (?) that it is properly added to my PATH. 我可以确认Python在我的命令提示符下工作,因此我相信(?)它已正确添加到我的PATH中。
However, when I try to debug in VSCode, I get the error: 但是,当我尝试在VSCode中调试时,我收到错误:
Failed to launch the Python Process, please validate the path 'python'
Error: spawn python ENOENT
I haven't edited my launch.json file at all... do I need to? 我根本没有编辑我的launch.json文件......我需要吗? I'm guessing it can't find python on the path, why is that?
我猜它在路径上找不到python,为什么会这样?
结果我只需要重新启动计算机。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.