当我不在基本conda环境中时,vscode IntelliSense/代码完成不起作用 [英] vscode IntelliSense / code completion doesn't work when I am not in base conda environment

查看:71
本文介绍了当我不在基本conda环境中时,vscode IntelliSense/代码完成不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我将项目更改为基本环境以外的其他conda环境时,python代码完成功能对于已安装的模块(例如cv2)不再起作用.

虽然我没有检测环境或运行我的代码的问题.我该如何解决?

解决方案

打开Anaconda提示符,激活环境,然后从激活的环境中启动VS Code(即 code.)./p>

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 ?

解决方案

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

这篇关于当我不在基本conda环境中时,vscode IntelliSense/代码完成不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆