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

VS stopped activating conda environment in its terminal #235826

Closed
mieszkomularczyk opened this issue Dec 11, 2024 · 1 comment
Closed

VS stopped activating conda environment in its terminal #235826

mieszkomularczyk opened this issue Dec 11, 2024 · 1 comment
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@mieszkomularczyk
Copy link

mieszkomularczyk commented Dec 11, 2024

Image

Type: Bug

  1. Open VS Code
  2. Open directory/project with conda virtual environment created
  3. VS Code properly recognizes this env and I see in bottom left corner 3.2.17('conda') and if I run the any python code from VS it runs indeed in its environment
  4. However the terminal (Powershell) is completely unaware. Running "python --version" show the system-wide python not the conda env one. Also running "conda" or "jupyter notebook" reports command not found
    It used to work earlier this year and it stopped with one of the recent updates. Please note I do not have this problem with venv (it activates perfectly in the terminal as well.

The only workround is to launch first Anaconda prompt, activate the conda environment in my target directory and then typing "code ." so launching VSCode from the Anaconda command prompt.

However this is mess. I would like my old, easier way to start working again. If I have anything wrong in the config, please let me know.
Here is the screenshot. Again, it used to work great like with venv.

VS Code version: Code 1.95.3 (f1a4fb1, 2024-11-13T14:50:04.152Z)
OS version: Windows_NT x64 10.0.22631
Modes:

System Info
Item Value
CPUs 13th Gen Intel(R) Core(TM) i9-13900H (20 x 2995)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 31.69GB (17.09GB free)
Process Argv --crash-reporter-id c64e8498-961b-4637-9e8b-d67b151abcfe
Screen Reader no
VM 0%
Extensions (13)
Extension Author (truncated) Version
vscode-docker ms- 1.29.3
debugpy ms- 2024.12.0
python ms- 2024.20.0
vscode-pylance ms- 2024.12.1
jupyter ms- 2024.10.0
jupyter-keymap ms- 1.1.2
jupyter-renderers ms- 1.0.21
vscode-jupyter-cell-tags ms- 0.1.9
vscode-jupyter-powertoys ms- 0.1.1
vscode-jupyter-slideshow ms- 0.1.6
remote-wsl ms- 0.88.5
intellicode-api-usage-examples Vis 0.2.9
vscodeintellicode Vis 1.3.2
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
vsaa593:30376534
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythonnoceb:30805159
pythonmypyd1:30879173
2e7ec940:31000449
pythontbext0:30879054
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
dvdeprecation:31068756
dwnewjupyter:31046869
nativerepl1:31139838
pythonrstrctxt:31112756
nativeloc1:31192215
cf971741:31144450
iacca1:31171482
notype1:31157159
5fd0e150:31155592
dwcopilot:31170013
stablechunks:31184530

@karthiknadig karthiknadig added the *duplicate Issue identified as a duplicate of another issue(s) label Dec 11, 2024
@karthiknadig
Copy link
Member

Duplicate microsoft/vscode-python#24472

@karthiknadig karthiknadig closed this as not planned Won't fix, can't repro, duplicate, stale Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
*duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

2 participants