forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed as duplicate of#25275
Closed as duplicate of#25275
Copy link
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugtriage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team
Description
Does this issue occur when all extensions are disabled?: Yes/No
- VS Code Version: 1.102.0
- OS Version: Windows 11 up to date
Steps to Reproduce:
- Open WSL bash console on Windows, navigate to your project
- Activate venv, check "which python" or try running the project
- All things should run okay, now open VS Code, same project
- Check if your venv activated by VS Code. If not bottom right corner click python version and pick your venv
- Try checking "which python" or running the project
- It won't work, try "which python3" and it will show you it's the global one. But let's check if the manual activation works. Pick the global python in bottom right corner
- Manually navigate to your project within the VS Code terminal
- Activate venv, check "which python" or try running the project
- It will work as expected.
At this point I'm not sure if this is WSL related though, but my setup is VS Code running on Windows 11 and working through WSL to get bash and Linux environment.
The output that follows is from automatically activated venv, as you can see uv works with it just fine.
(ticket_bot) maratnugmanov@Marat-NUC:~/code/ticket_bot$ uv sync
Resolved 48 packages in 13ms
Audited 46 packages in 0.07ms
(ticket_bot) maratnugmanov@Marat-NUC:~/code/ticket_bot$ uvicorn src.main:app --reload
Command 'uvicorn' not found, but can be installed with:
sudo apt install uvicorn
(ticket_bot) maratnugmanov@Marat-NUC:~/code/ticket_bot$
Metadata
Metadata
Assignees
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugtriage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team