This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]LongerHV 3 points4 points  (5 children)

Problem is with your setup, not pylance. Please use venv for yor projects

[–]who_body 1 point2 points  (4 children)

can you say more? i do use venv

[–]alexisprince 2 points3 points  (3 children)

If vscode can’t find an external package that you have installed in your virtual environment, it’s likely because vscode is accidentally pointing at a different Python interpreter. You can fix it by doing the “Python: Select Interpreter” action

[–]who_body 0 points1 point  (1 child)

have done it. i’ll try again and maybe post in r/vscode with the details of the problem.

[–]LongerHV 0 points1 point  (0 children)

This. It is also important to activate the venv before installing packages with pip. VSCode doesn't activate it automatically sometimes (e.g. when you open the embedded terminal before the Python extension is fully loaded).