问题描述
我已经尝试通过使用
pip install opencv-python
pip install opencv-contrib-python
pip uninstall panda
pip install panda
conda install opencv-python
有些信息是我当前正在使用python 3.6.10和Windows 10.
Some info is that im currently using python 3.6.10 and Windows 10.
opencv-python 4.2.0.32
numpy 1.18.1
panda 0.3.1
tensorflow-gpu 1.14.0
我创建了一个新的环境,但是似乎无法在Jupyter Notebook上导入cv2.我以前的环境能够做到这一点.当我尝试点安装opencv-python == 4.1.2.30(来自旧环境的点列表)时,问题仍然存在.谢谢您的阅读!
I created a new env but cant seem to import cv2 over on Jupyter Notebook. My earlier environment was able to do so. When i tried to pip install the opencv-python==4.1.2.30 (from the old environment's pip list), the problem was still there. Thank you for reading!
推荐答案
我发现了我犯的基本错误.我忘了在我的环境中下载jupyter笔记本.结果,我认为它把我带到了另一个没有opencv的目录.谢谢pygirl和nitro_himanshu的帮助!
I found the elementary mistake I made. I forgot to download jupyter notebook in my env. As a result, I think it brought me to the another directory which doesn't have opencv. Thank you pygirl and nitr_himanshu for your help!
这篇关于在新环境中没有名为"cv2"的模块错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!