config:python.pythonPath is not the active conda env when running tasks
See original GitHub issueIssue Type: Bug
Hi every one,
Don’t know what happend that now when I run a task my python points to other environement. Any one knows why?
See image bellow:
Any clue? Thank you in advance!
Extension version: 2021.6.944021595 VS Code version: Code 1.58.2 (c3f126316369cd610563c75b1b1725e0679adfb3, 2021-07-14T22:10:15.214Z) OS version: Windows_NT x64 10.0.18363 Restricted Mode: No Remote OS version: Linux x64 5.4.72-microsoft-standard-WSL2
System Info
Item | Value |
---|---|
CPUs | Intel® Core™ i7-2600K CPU @ 3.40GHz (8 x 3411) |
GPU Status | 2d_canvas: enabled gpu_compositing: enabled multiple_raster_threads: enabled_on oop_rasterization: enabled opengl: enabled_on rasterization: enabled skia_renderer: enabled_on video_decode: enabled vulkan: disabled_off webgl: enabled webgl2: enabled |
Load (avg) | undefined |
Memory (System) | 15.98GB (3.88GB free) |
Process Argv | –crash-reporter-id 374583dc-5a50-46a8-a2bc-0e19ed58e733 |
Screen Reader | no |
VM | 0% |
Item | Value |
---|---|
Remote | WSL: Ubuntu-20.04 |
OS | Linux x64 5.4.72-microsoft-standard-WSL2 |
CPUs | Intel® Core™ i7-2600K CPU @ 3.40GHz (8 x 3411) |
Memory (System) | 12.47GB (6.84GB free) |
VM | 0% |
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
pythonvspyt602:30300191
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyt639:30300192
pythontb:30283811
pythonvspyt551:30311712
vspre833:30321513
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscorecescf:30322572
pythondataviewer:30285071
vscus158:30321503
pythonvsuse255:30335481
vscod805:30301674
pythonvspyt200:30331937
vscextlangct:30333562
binariesv615:30325510
vsccppwtct:30329789
bridge0708:30335490
Issue Analytics
- State:
- Created 2 years ago
- Comments:5
Top Results From Across the Web
VS Code task and Python virtual environment - Stack Overflow
Having this config in your workspace, you can then create a custom task of type process using ${config:python.pythonPath} as it's command ...
Read more >Tasks with active venv get `source /path/to/activate` as stdin
When configuring a task via the .vscode/tasks.json file and running it, the terminal used should change to the venv set and stdin should...
Read more >Python Path and Version | Python in Visual Studio Code
Option 2: Activate the Virtual Environment from your Terminal/Command Window and then launch VS Code. Ensure none of the Python paths are configured...
Read more >Active questions tagged visual-studio-code - Stack Overflow
In the VS Code: Conda Environment it does not print statement 01 first and statement 02 after 2.4s ... conda run -n env_name...
Read more >python virtual environment - You.com | The search engine you control.
Having this config in your workspace, you can then create a custom task of type process using ${config:python.pythonPath} as it's command field.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The new docs will go out very soon (I think today🙂) which should contain the updated details.
I think this should help you out, it states how you can initialize your environment variables which the extension can read from. Closing this.
This looks like a different issue and also doesn’t seem to be related to the Python extension as VSCode itself is responsible for running tasks. I would recommend creating an issue in the vscode repo, or create a new issue in our repo filling the issue template. Thanks.