简体   繁体   English

如何使用pip在Ubuntu 16.04系统上安装open-cv库以在Pycharm IDE中使用?

[英]How do I install the open-cv library for use in Pycharm IDE on a Ubuntu 16.04 system using pip?

main.py : has line import cv2 , but on running main.py :有行import cv2 ,但正在运行

python main.py and error is thrown. python main.py并引发错误。

EDIT: 编辑:

pip install opencv-python installs cv2 package. pip install opencv-python安装cv2软件包。

Have you installed the package? 您安装了软件包吗? Try running 尝试跑步

pip install opencv-python

in the command line prompt, the proceed with import cv2 in a python console. 在命令行提示符下,继续在python控制台中import cv2

Follow These Steps in this Tutorial:- 请遵循本教程中的以下步骤:

https://itsfoss.com/install-pycharm-ubuntu/ https://itsfoss.com/install-pycharm-ubuntu/

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

相关问题 我该怎么做才能安装 Open-CV 库? 如图所示,我遇到了冲突问题 - what can I do to install Open-CV library ? I'm having a conflict problem as shown in the picture 如何在 Linux Ubuntu 16.04 中使用 Pip3 为 Python 3.6 安装模块? - How do I install modules for Python 3.6 using Pip3 in Linux Ubuntu 16.04? 如何使用pip 9.0.1在Ubuntu 16.04上安装pyjnius? - How to install pyjnius on Ubuntu 16.04 using pip 9.0.1? 如何使用python open-cv获取图像名称 - how get image name by using python open-cv 如何使用open-cv获取感兴趣区域的像素坐标? - How to get the pixel coordinates of the region of interest using open-cv? 如何用 open-cv 和 Picamera 捕捉人脸? - How to capture face with open-cv and Picamera? pip安装不能在Ubuntu 16.04上运行? - pip install not working on ubuntu 16.04? 我如何将这个外部库安装到我的pycharm IDE中 - How can I install this external library to my pycharm IDE 使用 Yolov3 时 python 的 Open-Cv dnn 错误。 使用 open-cv ver(4.2.0) - Open-Cv dnn error for python while using Yolov3. Using open-cv ver(4.2.0) 使用open-cv“模块'cv2'没有'CascadeClassifier'成员”时如何修复python中的以下错误? - How to fixed the following error in python while using open-cv "Module 'cv2' has no 'CascadeClassifier' member"?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM