简体   繁体   English

spyder中的opencv来自哪里

[英]Where does opencv come from in spyder

I'm working on a project where i use Spyder-IDE from anaconda.我正在开发一个使用 anaconda 的 Spyder-IDE 的项目。 I just need to download certain opencv version.我只需要下载某些 opencv 版本。 Therefore i uninstalled my current openCV version from anaconda environment (see image below):因此,我从 anaconda 环境中卸载了我当前的 openCV 版本(见下图):

安娜

However, the opencv which i assumingly uninstalled Bibliothek is still being imported in spyder (see image)但是,我假设卸载了 Bibliothek 的 opencv 仍在 spyder 中导入(见图)

在此处输入图片说明

As you see above the library still being imported如您所见,库仍在导入中

I also checked if its installed using pip but didn't find anything我还检查了它是否使用 pip 安装但没有找到任何东西

So where does it come from and how to emove it?那么它来自哪里以及如何去除它呢?

Thanks in advance提前致谢

So where does it come from那么它来自哪里

To find that out, you need to write要找出来,你需要写

cv2.__file__

how to remove it?如何删除它?

It depends.这取决于。 If that file name contains directory names related to Anaconda on it, you should use conda to do that.如果该文件名包含与 Anaconda 相关的目录名称,则应使用conda来执行此操作。 If it contains AppData and Python37 or Python38 , you need to go to that location and remove that directory by hand.如果它包含AppDataPython37Python38 ,您需要转到该位置并手动删除该目录。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM