-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VS Code failed to resovle the correct Python path #24624
Comments
Can you run this command from a terminal and share the result?
You can change the path to any broken python and share the result please:
|
I found there was no /Users/wyattwong/.vscode/extensions/ms-python.python-2024.22.0-darwin-x64/out/python-env-tools/ path I have uninstall Python VS Code extension, then manually removed the /Users/wyattwong/.vscode/extensions/ms-python.python-2024.22.0-darwin-x64 folder and re-install the Python VS Code extension but the result was the SAME. |
Sorry, it might be in the parent of
|
And what do you get when you try to |
I thought the problem maybe caused by the pyscript extension https://marketplace.visualstudio.com/items?itemName=HardeepSingh.pyscript Anyway, I have uninstall PyScript extension and manually remove the pyscript folder below. /Users/wyattwong/.vscode/extensions/hardeepsingh.pyscript-0.1.1 Then after I re-installed pyscript extension and try create a new Jupyter notebook or open an existing Jupyter notebook, I no longer see the "Reactivating terminals" error. |
This looks like python environment tools is failing to detect pyenv versions that are no longer installed or removed. Just to confirm, would be possible to list the installed versions of python you have with |
Well maybe it should be the Python Environment Manager extension instead of PyScript extension is causing the problem: https://marketplace.visualstudio.com/items?itemName=donjayamanne.python-environment-manager Anyway, now when I create a New Jupyter notebook, I got the following output: Thanks for your assistance. |
Discussed in #24610
Originally posted by wyatt-wong December 16, 2024
I have installed the Python and Jupyter extensions from Microsoft, but everytime when I create a new Jupyter notebook or opened an existing Jupyter notebook, I found that VS Code was stuck in executing "Reactivating terminals" and it is finding the old version of Python 3.13.0 as follows:
[error] sendStartupTelemetry() failed. l [Error]: Failed to resolve env "/Users/wyattwong/.pyenv/versions/3.13.0/bin/python"
I checked the Default Interpreter Path is pointing to /Users/wyattwong/.pyenv/versions/venv/bin/python
I checked the /Users/wyattwong/.pyenv/versions/venv/bin/python is already pointing to the correct Python version 3.13.1.
How do I fix this issue ?
The text was updated successfully, but these errors were encountered: