确保Python版本能正常显示。如果没有显示版本,您需要重新安装或修复您的Python环境。 2. 设置VSCode的Python路径 可以通过VSCode的设置选项手动指定Python解释器。按下Ctrl + Shift + P,输入“Python: Select Interpreter”,然后选择正确的Python路径。 {"python.pythonPath":"C:\\Python39\\python.exe"} 1. 2. 3...
首先,我们需要在 VSCode 中安装 Python 扩展。打开 VSCode,点击左侧的扩展按钮,搜索并安装Python扩展。 安装完扩展后,点击左下角的 Python 解释器版本,可以看到类似下图的弹出菜单: 在弹出菜单中,我们可以看到可供选择的 Python 解释器。如果我们已经在电脑上安装了多个版本的 Python,这里会列出所有的版本。我们可以选择...
Type: Bug Behaviour When I load a Python project in vscode, I would see a "Discovering Python Interpreters" spin wheel on the bottom left corner of the window indefinitely, and I cannot use any intellisense features on the python file, i...
Here is the Window output - somehow related to Discovering Python Interpreters that scans both the remote Mac and Linux servers. Once the user selects an interpreter either from the notebook or Command Palette: Select Interpreter, the Discovering Python Interpreters commences and never ceases. It ...
"python.command.python.runCurrentTestFile.title": "Run Current Test File", "python.command.python.runFailedTests.title": "Run Failed Tests", "python.command.python.discoverTests.title": "Discover Tests", "python.command.python.discoveringTests.title": "Discovering...", "python.command.py...
"python.command.python.discoveringTests.title": "Discovering...", "python.command.python.stopTests.title": "Stop", "python.command.python.configureTests.title": "Configure Tests", "python.command.python.execSelectionInTerminal.title": "Run Selection/Line in Python Terminal", ...
Type: Bug Behaviour Expected vs. Actual Discovering Python Interpreters should vanish after few seconds, but it keeps running. Diagnostic data Python version (& distribution if applicable, e.g. Anaconda): 3.11.0 Type of virtual environme...
Type: Bug Behaviour Expected vs. Actual Install v2024.4.0 or v2024.4.1 extension and the discovering Python interpreters run indefinitely. This also restarts the kernel periodically - a MAJOR PROBLEM when excecuting ML notebooks - lost v...
Retain state of tests when auto discovering tests. (#4576) Update icons and tooltip in test explorer indicating status of test files/suites (#4583) Add 'ignoreVscodeTheme' setting to allow a user to skip using the theme for VS Code in the Python Interactive Window. (#4640) Add telemetry ...
"python.command.python.runCurrentTestFile.title": "Run Current Test File", "python.command.python.runFailedTests.title": "Run Failed Tests", "python.command.python.discoverTests.title": "Discover Tests", "python.command.python.discoveringTests.title": "Discovering...", "python.command.py...