Description
Type: Bug
I spent the past hour trying to understand my pylance was putting either a yellow or red underline in my code in my jupyter notebook in vscode. I was originally trying to use the command "conda install..." to install a new package and it kept underlining conda in yellow and install in red. I then just tried import pandas as pd, import numpy as np, and again yellow underline on both pandas and numpy as if these libraries were not recognized. I finally just went ahead and ran the code with the underlines and it ran fine. After it ran pandas and numpy no longer have the yellow underline but again, when I try to "conda install.." it thinks there is an error with this. So I do not know what is going on but for some reason pylance is not recognizing my anaconda distribution in vscode.
Extension version: 2025.2.1
VS Code version: Code 1.97.2 (e54c774e0add60467559eb0d1e229c6452cf8447, 2025-02-12T23:20:35.343Z)
OS version: Windows_NT x64 10.0.19045
Modes:
System Added Logs
2025-02-20 15:30:44.822 [info] (Client) Pylance async client (2025.2.1) started with python extension (2025.0.0)
2025-02-20 15:30:47.982 [info] [Info - 3:30:47 PM] (19736) Server root directory: file:///c%3A/Users/kingm/.vscode/extensions/ms-python.vscode-pylance-2025.2.1/dist
2025-02-20 15:30:48.019 [info] [Info - 3:30:48 PM] (19736) Pylance language server 2025.2.1 (pyright version 1.1.393, commit 3763156f) starting
2025-02-20 15:42:01.249 [info] [Info - 3:42:01 PM] (19736) Starting service instance "<default>"
2025-02-20 15:42:01.353 [info] [Info - 3:42:01 PM] (19736) Setting environmentName for service "<default>": "3.12.7 (base conda)"
2025-02-20 15:42:01.354 [info] [Info - 3:42:01 PM] (19736) Setting pythonPath for service "<default>": "c:\Users\kingm\.vscode\extensions\ms-python.vscode-pylance-2025.2.1\dist"
2025-02-20 15:42:01.355 [info] [Info - 3:42:01 PM] (19736) No include entries specified; assuming \<default workspace root>
2025-02-20 15:42:01.356 [info] [Info - 3:42:01 PM] (19736) Auto-excluding **/node_modules
2025-02-20 15:42:01.357 [info] [Info - 3:42:01 PM] (19736) Auto-excluding **/__pycache__
2025-02-20 15:42:01.357 [info] [Info - 3:42:01 PM] (19736) Auto-excluding **/.*
2025-02-20 15:42:01.476 [info] [Error - 3:42:01 PM] (19736) File or directory "\<default workspace root>" does not exist.
2025-02-20 15:42:01.478 [info] [Info - 3:42:01 PM] (19736) No source files found.
2025-02-20 15:42:02.463 [info] [Info - 3:42:02 PM] (19736) Background analysis(1) root directory: file:///c%3A/Users/kingm/.vscode/extensions/ms-python.vscode-pylance-2025.2.1/dist
2025-02-20 15:42:02.469 [info] [Info - 3:42:02 PM] (19736) Background analysis(1) started
2025-02-20 15:52:30.344 [info] [Info - 3:52:30 PM] (19736) Setting environmentName for service "<default>": "3.12.7 (base conda)"
2025-02-20 15:52:30.345 [info] [Info - 3:52:30 PM] (19736) Setting pythonPath for service "<default>": "c:\Users\kingm\.vscode\extensions\ms-python.vscode-pylance-2025.2.1\dist"
2025-02-20 15:52:30.346 [info] [Info - 3:52:30 PM] (19736) No include entries specified; assuming \<default workspace root>
2025-02-20 15:52:30.347 [info] [Info - 3:52:30 PM] (19736) Auto-excluding **/node_modules
2025-02-20 15:52:30.347 [info] [Info - 3:52:30 PM] (19736) Auto-excluding **/__pycache__
2025-02-20 15:52:30.347 [info] [Info - 3:52:30 PM] (19736) Auto-excluding **/.*
2025-02-20 15:52:30.408 [info] [Error - 3:52:30 PM] (19736) File or directory "\<default workspace root>" does not exist.
2025-02-20 15:52:30.410 [info] [Info - 3:52:30 PM] (19736) No source files found.
2025-02-20 15:53:32.560 [info] [Info - 3:53:32 PM] (19736) Starting service instance "<default>"
2025-02-20 15:53:32.681 [info] [Info - 3:53:32 PM] (19736) Setting environmentName for service "<default>": "3.12.7 (base conda)"
2025-02-20 15:53:32.681 [info] [Info - 3:53:32 PM] (19736) Setting pythonPath for service "<default>": "c:\Users\kingm\anaconda3\python.exe"
2025-02-20 15:53:32.682 [info] [Info - 3:53:32 PM] (19736) No include entries specified; assuming \<default workspace root>
2025-02-20 15:53:32.682 [info] [Info - 3:53:32 PM] (19736) Auto-excluding **/node_modules
2025-02-20 15:53:32.683 [info] [Info - 3:53:32 PM] (19736) Auto-excluding **/__pycache__
2025-02-20 15:53:32.683 [info] [Info - 3:53:32 PM] (19736) Auto-excluding **/.*
2025-02-20 15:53:32.862 [info] [Info - 3:53:32 PM] (19736) Assuming Python version 3.12.7.final.0
2025-02-20 15:53:33.286 [info] [Error - 3:53:33 PM] (19736) File or directory "\<default workspace root>" does not exist.
2025-02-20 15:53:33.287 [info] [Info - 3:53:33 PM] (19736) No source files found.
2025-02-20 15:53:34.025 [info] [Info - 3:53:34 PM] (19736) Background analysis(2) root directory: file:///c%3A/Users/kingm/.vscode/extensions/ms-python.vscode-pylance-2025.2.1/dist
2025-02-20 15:53:34.028 [info] [Info - 3:53:34 PM] (19736) Background analysis(2) started
2025-02-20 15:53:36.882 [info] [Info - 3:53:36 PM] (19736) Starting service instance "<default>"
2025-02-20 15:53:36.963 [info] [Info - 3:53:36 PM] (19736) Setting environmentName for service "<default>": "3.12.7 (base conda)"
2025-02-20 15:53:36.964 [info] [Info - 3:53:36 PM] (19736) Setting pythonPath for service "<default>": "c:\Users\kingm\.vscode\extensions\ms-python.vscode-pylance-2025.2.1\dist"
2025-02-20 15:53:36.964 [info] [Info - 3:53:36 PM] (19736) No include entries specified; assuming \<default workspace root>
2025-02-20 15:53:36.964 [info] [Info - 3:53:36 PM] (19736) Auto-excluding **/node_modules
2025-02-20 15:53:36.965 [info] [Info - 3:53:36 PM] (19736) Auto-excluding **/__pycache__
2025-02-20 15:53:36.965 [info] [Info - 3:53:36 PM] (19736) Auto-excluding **/.*
2025-02-20 15:53:37.065 [info] [Error - 3:53:37 PM] (19736) File or directory "\<default workspace root>" does not exist.
2025-02-20 15:53:37.071 [info] [Info - 3:53:37 PM] (19736) No source files found.
2025-02-20 15:53:38.075 [info] [Info - 3:53:38 PM] (19736) Background analysis(3) root directory: file:///c%3A/Users/kingm/.vscode/extensions/ms-python.vscode-pylance-2025.2.1/dist
2025-02-20 15:53:38.081 [info] [Info - 3:53:38 PM] (19736) Background analysis(3) started
2025-02-20 15:56:28.384 [info] [Info - 3:56:28 PM] (19736) Setting environmentName for service "<default>": "python"
2025-02-20 15:56:28.385 [info] [Info - 3:56:28 PM] (19736) Setting pythonPath for service "<default>": "c:\Users\kingm\anaconda3\python.exe"
2025-02-20 15:56:28.386 [info] [Info - 3:56:28 PM] (19736) No include entries specified; assuming \<default workspace root>
2025-02-20 15:56:28.390 [info] [Info - 3:56:28 PM] (19736) Auto-excluding **/node_modules
2025-02-20 15:56:28.390 [info] [Info - 3:56:28 PM] (19736) Auto-excluding **/__pycache__
2025-02-20 15:56:28.391 [info] [Info - 3:56:28 PM] (19736) Auto-excluding **/.*
2025-02-20 15:56:28.621 [info] [Info - 3:56:28 PM] (19736) Assuming Python version 3.12.7.final.0
2025-02-20 15:56:28.938 [info] [Error - 3:56:28 PM] (19736) File or directory "\<default workspace root>" does not exist.
2025-02-20 15:56:28.939 [info] [Info - 3:56:28 PM] (19736) No source files found.
2025-02-20 15:56:28.943 [info] [Info - 3:56:28 PM] (19736) Setting environmentName for service "<default>": "python"
2025-02-20 15:56:28.943 [info] [Info - 3:56:28 PM] (19736) Setting pythonPath for service "<default>": "c:\Users\kingm\.vscode\extensions\ms-python.vscode-pylance-2025.2.1\dist"
2025-02-20 15:56:28.944 [info] [Info - 3:56:28 PM] (19736) No include entries specified; assuming \<default workspace root>
2025-02-20 15:56:28.944 [info] [Info - 3:56:28 PM] (19736) Auto-excluding **/node_modules
2025-02-20 15:56:28.944 [info] [Info - 3:56:28 PM] (19736) Auto-excluding **/__pycache__
2025-02-20 15:56:28.945 [info] [Info - 3:56:28 PM] (19736) Auto-excluding **/.*
2025-02-20 15:56:28.994 [info] [Error - 3:56:28 PM] (19736) File or directory "\<default workspace root>" does not exist.
2025-02-20 15:56:28.995 [info] [Info - 3:56:28 PM] (19736) No source files found.
2025-02-20 15:56:29.000 [info] [Info - 3:56:28 PM] (19736) Setting environmentName for service "<default>": "python"
2025-02-20 15:56:29.000 [info] [Info - 3:56:28 PM] (19736) Setting pythonPath for service "<default>": "c:\Users\kingm\anaconda3\python.exe"
2025-02-20 15:56:29.001 [info] [Info - 3:56:29 PM] (19736) No include entries specified; assuming \<default workspace root>
2025-02-20 15:56:29.001 [info] [Info - 3:56:29 PM] (19736) Auto-excluding **/node_modules
2025-02-20 15:56:29.001 [info] [Info - 3:56:29 PM] (19736) Auto-excluding **/__pycache__
2025-02-20 15:56:29.002 [info] [Info - 3:56:29 PM] (19736) Auto-excluding **/.*
2025-02-20 15:56:29.132 [info] [Info - 3:56:29 PM] (19736) Assuming Python version 3.12.7.final.0
2025-02-20 15:56:29.357 [info] [Error - 3:56:29 PM] (19736) File or directory "\<default workspace root>" does not exist.
2025-02-20 15:56:29.358 [info] [Info - 3:56:29 PM] (19736) No source files found.
2025-02-20 15:56:29.363 [info] [Info - 3:56:29 PM] (19736) Setting environmentName for service "<default>": "python"
2025-02-20 15:56:29.363 [info] [Info - 3:56:29 PM] (19736) Setting pythonPath for service "<default>": "c:\Users\kingm\.vscode\extensions\ms-python.vscode-pylance-2025.2.1\dist"
2025-02-20 15:56:29.363 [info] [Info - 3:56:29 PM] (19736) No include entries specified; assuming \<default workspace root>
2025-02-20 15:56:29.364 [info] [Info - 3:56:29 PM] (19736) Auto-excluding **/node_modules
2025-02-20 15:56:29.364 [info] [Info - 3:56:29 PM] (19736) Auto-excluding **/__pycache__
2025-02-20 15:56:29.364 [info] [Info - 3:56:29 PM] (19736) Auto-excluding **/.*
2025-02-20 15:56:29.411 [info] [Error - 3:56:29 PM] (19736) File or directory "\<default workspace root>" does not exist.
2025-02-20 15:56:29.411 [info] [Info - 3:56:29 PM] (19736) No source files found.
2025-02-20 15:58:25.069 [info] [Info - 3:58:25 PM] (19736) Setting environmentName for service "<default>": "3.12.7 (base conda)"
2025-02-20 15:58:25.069 [info] [Info - 3:58:25 PM] (19736) Setting pythonPath for service "<default>": "c:\Users\kingm\anaconda3\python.exe"
2025-02-20 15:58:25.070 [info] [Info - 3:58:25 PM] (19736) No include entries specified; assuming \<default workspace root>
2025-02-20 15:58:25.070 [info] [Info - 3:58:25 PM] (19736) Auto-excluding **/node_modules
2025-02-20 15:58:25.070 [info] [Info - 3:58:25 PM] (19736) Auto-excluding **/__pycache__
2025-02-20 15:58:25.071 [info] [Info - 3:58:25 PM] (19736) Auto-excluding **/.*
2025-02-20 15:58:25.239 [info] [Info - 3:58:25 PM] (19736) Assuming Python version 3.12.7.final.0
2025-02-20 15:58:25.501 [info] [Error - 3:58:25 PM] (19736) File or directory "\<default workspace root>" does not exist.
2025-02-20 15:58:25.501 [info] [Info - 3:58:25 PM] (19736) No source files found.
2025-02-20 15:58:25.505 [info] [Info - 3:58:25 PM] (19736) Setting environmentName for service "<default>": "3.12.7 (base conda)"
2025-02-20 15:58:25.505 [info] [Info - 3:58:25 PM] (19736) Setting pythonPath for service "<default>": "c:\Users\kingm\.vscode\extensions\ms-python.vscode-pylance-2025.2.1\dist"
2025-02-20 15:58:25.505 [info] [Info - 3:58:25 PM] (19736) No include entries specified; assuming \<default workspace root>
2025-02-20 15:58:25.506 [info] [Info - 3:58:25 PM] (19736) Auto-excluding **/node_modules
2025-02-20 15:58:25.506 [info] [Info - 3:58:25 PM] (19736) Auto-excluding **/__pycache__
2025-02-20 15:58:25.506 [info] [Info - 3:58:25 PM] (19736) Auto-excluding **/.*
2025-02-20 15:58:25.565 [info] [Error - 3:58:25 PM] (19736) File or directory "\<default workspace root>" does not exist.
2025-02-20 15:58:25.566 [info] [Info - 3:58:25 PM] (19736) No source files found.
2025-02-20 15:58:25.572 [info] [Info - 3:58:25 PM] (19736) Setting environmentName for service "<default>": "3.12.7 (base conda)"
2025-02-20 15:58:25.572 [info] [Info - 3:58:25 PM] (19736) Setting pythonPath for service "<default>": "c:\Users\kingm\anaconda3\python.exe"
2025-02-20 15:58:25.573 [info] [Info - 3:58:25 PM] (19736) No include entries specified; assuming \<default workspace root>
2025-02-20 15:58:25.573 [info] [Info - 3:58:25 PM] (19736) Auto-excluding **/node_modules
2025-02-20 15:58:25.573 [info] [Info - 3:58:25 PM] (19736) Auto-excluding **/__pycache__
2025-02-20 15:58:25.573 [info] [Info - 3:58:25 PM] (19736) Auto-excluding **/.*
2025-02-20 15:58:25.719 [info] [Info - 3:58:25 PM] (19736) Assuming Python version 3.12.7.final.0
2025-02-20 15:58:25.980 [info] [Error - 3:58:25 PM] (19736) File or directory "\<default workspace root>" does not exist.
2025-02-20 15:58:25.980 [info] [Info - 3:58:25 PM] (19736) No source files found.
2025-02-20 15:58:25.986 [info] [Info - 3:58:25 PM] (19736) Setting environmentName for service "<default>": "3.12.7 (base conda)"
2025-02-20 15:58:25.986 [info] [Info - 3:58:25 PM] (19736) Setting pythonPath for service "<default>": "c:\Users\kingm\.vscode\extensions\ms-python.vscode-pylance-2025.2.1\dist"
2025-02-20 15:58:25.986 [info] [Info - 3:58:25 PM] (19736) No include entries specified; assuming \<default workspace root>
2025-02-20 15:58:25.987 [info] [Info - 3:58:25 PM] (19736) Auto-excluding **/node_modules
2025-02-20 15:58:25.987 [info] [Info - 3:58:25 PM] (19736) Auto-excluding **/__pycache__
2025-02-20 15:58:25.987 [info] [Info - 3:58:25 PM] (19736) Auto-excluding **/.*
2025-02-20 15:58:26.044 [info] [Error - 3:58:26 PM] (19736) File or directory "\<default workspace root>" does not exist.
2025-02-20 15:58:26.044 [info] [Info - 3:58:26 PM] (19736) No source files found.
2025-02-20 15:59:06.542 [info] [Info - 3:59:06 PM] (19736) Starting service instance "<default>"
2025-02-20 15:59:06.637 [info] [Info - 3:59:06 PM] (19736) Setting environmentName for service "<default>": "3.12.7 (base conda)"
2025-02-20 15:59:06.638 [info] [Info - 3:59:06 PM] (19736) Setting pythonPath for service "<default>": "c:\Users\kingm\.vscode\extensions\ms-python.vscode-pylance-2025.2.1\dist"
2025-02-20 15:59:06.638 [info] [Info - 3:59:06 PM] (19736) No include entries specified; assuming \<default workspace root>
2025-02-20 15:59:06.638 [info] [Info - 3:59:06 PM] (19736) Auto-excluding **/node_modules
2025-02-20 15:59:06.638 [info] [Info - 3:59:06 PM] (19736) Auto-excluding **/__pycache__
2025-02-20 15:59:06.638 [info] [Info - 3:59:06 PM] (19736) Auto-excluding **/.*
2025-02-20 15:59:06.719 [info] [Error - 3:59:06 PM] (19736) File or directory "\<default workspace root>" does not exist.
2025-02-20 15:59:06.721 [info] [Info - 3:59:06 PM] (19736) No source files found.
2025-02-20 15:59:07.824 [info] [Info - 3:59:07 PM] (19736) Background analysis(4) root directory: file:///c%3A/Users/kingm/.vscode/extensions/ms-python.vscode-pylance-2025.2.1/dist
2025-02-20 15:59:07.828 [info] [Info - 3:59:07 PM] (19736) Background analysis(4) started
2025-02-20 16:04:58.980 [info] [Info - 4:04:58 PM] (19736) Starting service instance "<default>"
2025-02-20 16:04:59.068 [info] [Info - 4:04:59 PM] (19736) Setting environmentName for service "<default>": "3.12.7 (base conda)"
2025-02-20 16:04:59.068 [info] [Info - 4:04:59 PM] (19736) Setting pythonPath for service "<default>": "c:\Users\kingm\anaconda3\python.exe"
2025-02-20 16:04:59.069 [info] [Info - 4:04:59 PM] (19736) No include entries specified; assuming \<default workspace root>
2025-02-20 16:04:59.069 [info] [Info - 4:04:59 PM] (19736) Auto-excluding **/node_modules
2025-02-20 16:04:59.069 [info] [Info - 4:04:59 PM] (19736) Auto-excluding **/__pycache__
2025-02-20 16:04:59.069 [info] [Info - 4:04:59 PM] (19736) Auto-excluding **/.*
2025-02-20 16:04:59.245 [info] [Info - 4:04:59 PM] (19736) Assuming Python version 3.12.7.final.0
2025-02-20 16:04:59.581 [info] [Error - 4:04:59 PM] (19736) File or directory "\<default workspace root>" does not exist.
2025-02-20 16:04:59.581 [info] [Info - 4:04:59 PM] (19736) No source files found.
2025-02-20 16:05:00.191 [info] [Info - 4:05:00 PM] (19736) Background analysis(5) root directory: file:///c%3A/Users/kingm/.vscode/extensions/ms-python.vscode-pylance-2025.2.1/dist
2025-02-20 16:05:00.196 [info] [Info - 4:05:00 PM] (19736) Background analysis(5) started
System Info
Item | Value |
---|---|
CPUs | Intel(R) Core(TM) i7-1065G7 CPU @ 1.30GHz (8 x 1498) |
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) | 15.60GB (7.93GB free) |
Process Argv | --crash-reporter-id a14b308a-10fc-46cf-8b94-cca50d2b3042 |
Screen Reader | no |
VM | 0% |
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492:30256859
vscod805cf:30301675
binariesv615:30325510
py29gd2263:31024239
14376chatcontrol:31241990
c4g48928:30535728
azure-dev_surveyone:30548225
vscrp:30673768
962ge761:30959799
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dwnewjupyter:31046869
nativerepl1:31139838
pythonrstrctxt:31112756
nativeloc1:31192215
iacca1:31171482
5fd0e150:31155592
dwcopilot:31170013
stablechunks:31184530
6074i472:31201624
dwoutputs:31238123
customenabled:31241370
9064b325:31222308
copilot_t_ci:31222730
jda6j935:31233686
copilothoveroff:31240707
Activity