Skip to main content
 首页 » 编程设计

python之VScode 和 WinPython

2025年01月19日9sky-heaven

我尝试在带有 VScode 的 Windows 10 Pro 上使用 WinPython-64bit-3.6.3.0Qt5。 Winpython安装在C:\Users\Public\WinPython-64bit-3.6.3.0Qt5。在我拥有的用户设置文件中,但在可用的 python 解释器和 python 环境列表中看不到 WinPython。有什么问题。我也尝试使用“\”

{ 
    "terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe", 
 
    "python.pythonPath": "C:/Users/Public/WinPython-64bit-3.6.3.0Qt5/python-3.6.3.amd64/python.exe" 
} 

感谢任何提示。

请您参考如下方法:

您需要指定文件夹路径,而不是 python.exe。比如WinPython-64bit-3.6.3.0Qt5\\python-3.6.3.amd64

另见 https://github.com/Microsoft/vscode-python/issues/784