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

血红的双手。 提交于 2021-01-29 19:12:27

问题


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 ?


回答1:


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



来源:https://stackoverflow.com/questions/62018436/vscode-intellisense-code-completion-doesnt-work-when-i-am-not-in-base-conda-e

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!