Skip to content
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

Python version recognition error, resulting in a prompt that the current Python version is not supported #15758

Closed
cosmic-latte opened this issue Jun 12, 2024 · 2 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug upstream-python Blocked on upstream Python Ext

Comments

@cosmic-latte
Copy link

Environment data

  • VS Code version: 1.90.0
  • Jupyter Extension version (available under the Extensions sidebar): v2024.5.0
  • Python Extension version (available under the Extensions sidebar): v2024.8.0
  • OS (Windows | Mac | Linux distro) and version: macOS 14.5
  • Python and/or Anaconda version: Anaconda 2024.02-1
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): conda
  • Jupyter server running: Local

Unable to correctly identify the Python version of the virtual environment

In fact, the Python version of the base environment is 3.11.7, but it is recognized by vscode as 3.1-1, and then an error message is received: This version is not supported.

In my other conda venv, Python is 3.12.3, but it is also recognized as 3.1-1.

2024-06-12 AM 10 42 16

Version recognized by vscode:
2024-06-12 AM 10 28 38

@cosmic-latte cosmic-latte added the bug Issue identified by VS Code Team member as probable bug label Jun 12, 2024
@Choumingzhao
Copy link

Choumingzhao commented Jun 12, 2024

I got similar error when using vscode-jupyter in conda venv. My Python version is Python 3.11.0. But also got 3.1.-1 like this:
image

The notebook will still work though. But every time select that venv will prompt this annoying message.
image

@DonJayamanne
Copy link
Contributor

Duplicate of microsoft/vscode-python#23580

@DonJayamanne DonJayamanne added the upstream-python Blocked on upstream Python Ext label Jun 12, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug upstream-python Blocked on upstream Python Ext
Projects
None yet
Development

No branches or pull requests

3 participants