-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
file can't find package in venv even it's already enabled #18861
Comments
Hi @RoadToDream, thank you for reaching out. Is the interpreter selected in VS Code the same as the one from your virtual environment? |
Hi @kimadeline, hope you are doing well! |
Hi there, sorry for the delay! Could you try resetting the path to the environment in the extension (select it again), and reinstalling pandas using Is How do you connect to the remote machine? |
|
Hi @huahua7608, how do you connect to the remote machine? |
Hi @kimadeline , sorry for the delay. I found that the issue can be fixed by reenable the venv and reopen the file together. I guess there might be somewhere needs a refresh after packages are installed after enabling the venv in VS code. But I can take the workaround for now. |
Glad to hear you found a workaround! What do you mean by reenabling the venv? |
For reenabling the vnev, I mean select a python interpreter other than the one used in the current venv and then select back. |
Sounds good! We'll have to dig a little bit further to see what's causing this issue. |
I'm also experiencing this issue. It's mind-numbing |
@karrtikr any thoughts? Are people still experiencing this issue? |
Sounds like a Pylance issue if packages are not found, we should probably transfer. |
There were several changes that we made regarding venv. Please file an issue if you keep experiencing the problem. |
Issue Type: Bug
Behaviour
Expected vs. Actual
Python extension should look for packages installed in venv, but doesn't.
Which causes the intellisense and debug failed to run due to "package not found" error.
Steps to reproduce:
Diagnostic data
python.languageServer
setting: DefaultUser Settings
Extension version: 2022.4.0
VS Code version: Code 1.66.0 (e18005f0f1b33c29e81d732535d8c0e47cafb0b5, 2022-03-30T05:50:14.623Z)
OS version: Windows_NT x64 10.0.22000
Restricted Mode: No
Remote OS version: Linux x64 5.13.0-39-generic
Remote OS version: Linux x64 5.13.0-39-generic
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: unavailable_off
vulkan: disabled_off
webgl: enabled
webgl2: enabled
A/B Experiments
The text was updated successfully, but these errors were encountered: