vscode IntelliSense / code completion doesn't work when I am not in base conda environment
Asked Answered
P

2

4

When I change my project to another conda environment than base environment, python code completion doesn't work anymore for installed modules (like cv2).

I have no problem detecting the environment or running my code though. How can I fix it ?

Persinger answered 26/5, 2020 at 9:6 Comment(0)
M
1

Open your Anaconda Prompt, activate the environment, and then launch VS Code from within the activated environment (i.e. code .).

Melodimelodia answered 27/5, 2020 at 22:26 Comment(1)
Thank you ! Just what I needed :)Persinger
O
1

I had the same problem in mac os. The problem was with the "Language Server" setting in the python extension, which is by default "Jedi". I changed it to "pylance" and it solved my problem. To use pylance you have to install the pylance extension.

Overlap answered 25/4, 2021 at 10:16 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.