visual-studio - 错误 "**We didn' t 在运行代码时在 VS 中找到任何解释器**”

标签 visual-studio python-2.7 python-3.x cpython

当我尝试在 Visual Studio python 中运行我的代码时,为什么会收到错误消息“我们没有找到任何解释器”?

最佳答案

您是否安装了合适的 Python 解释器?您安装了它但 Visual Studio 找不到它?如果是,请转到菜单 View => Other Windows => Python Environments 以查看以下窗口。然后设置正确的 python 路径。

enter image description here

有关详细信息,请参阅 here .

关于visual-studio - 错误 "**We didn' t 在运行代码时在 VS 中找到任何解释器**”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40985894/

相关文章:

c# - Application.Run(new Form1()) 抛出 System.ArgumentException : 'Value does not fall within the expected range.'

python-2.7 - 从Python中的OpenCV轮廓获取坐标列表

python - 禁用、隐藏或删除 Tkinter 中的关闭 "X"按钮

python - 将目录树表示为 JSON

python - 将参数传递给线程python

python - Pandas 列基于条件的可变长度字符串切片

python - 如何避免Python中的错误导致循环中断?

c# - 构建期间未知的命名空间(但智能感知知道)

html - 如何在 Firefox 中构建我的网站?

c# - ReSharper Equality 成员生成哈希码警告