【发布时间】:2018-02-01 23:00:03
【问题描述】:
我已经能够在命令窗口中使用 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 Notebook:
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/编程非常陌生,如果这还不是很明显的话。谢谢。
【问题讨论】:
-
当你在命令行中执行
python -c "import cv"时会发生什么? -
文件 "
",第 1 行 python -c "import cv" ^ SyntaxError: invalid syntax -
不是来自 ipython 命令行。我的意思是windows命令行。运行 cmd.exe 时得到的那个
-
你指的是命令提示符窗口(dos prompt)吗?
-
是的,我就是这个意思
标签: python import anaconda jupyter