我已经能够在命令窗口中使用pip install安装这两个模块,没有任何问题(Windows 7 64)。当我尝试在Jupyter中导入时,收到以下错误消息:
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-5-305887a710d6> in <module>()
----> 1 import cv
ModuleNotFoundError: No module named 'cv'
关于Jupyter笔记本:
Server Information:
You are using Jupyter notebook.
The version of the notebook server is 5.0.0 and is running on:
Python 3.6.3 |Anaconda, Inc.| (default, Oct 15 2017, 03:27:45) [MSC v.1900 64 bit (AMD64)]
Current Kernel Information:
Python 3.6.3 |Anaconda, Inc.| (default, Oct 15 2017, 03:27:45) [MSC v.1900 64 bit (AMD64)]
Type 'copyright', 'credits' or 'license' for more information
IPython 6.1.0 -- An enhanced Interactive Python. Type '?' for help.
我对python /编程很新,如果这已经不明显了。 THX。
答案 0 :(得分:0)
做了一些搜索。包索引中没有包cv。您需要pip install opencv-python
,然后才能import cv2
根据评论进行编辑:确保在运行pip install