我试图简单地安装和使用cv2,numpy和matplotlib。 全部安装成功,但当我输入终端"导入..."它给我以下错误?
我很困惑,因为终端的建议是什么,我已经安装过这种方式了吗?
我不确定为什么它会把我指向包裹?
import cv2
The program 'import' can be found in the following packages:
* imagemagick
* graphicsmagick-imagemagick-compat
Try: sudo apt-get install <selected package>
由于
答案 0 :(得分:0)
import
是来自imagemagick
和graphicsmagick
的命令,你试图在你的终端中导入模块python,但是,你应该在python shell中导入:
$ python
Python 3.6.3 (default, Oct 9 2017, 12:11:29)
[GCC 7.2.1 20170915 (Red Hat 7.2.1-2)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
>>> code_here
>>> exit()
从imagemagick导入的概述。
The `import` program is a member of the ImageMagick(1) suite of tools. Use it to capture some or all of an X server screen and save the image to a
file.
For more information about the import command, point your browser to file:///usr/share/doc/ImageMagick-6/www/import.html or http://www.imagemag‐
ick.org/script/import.php.