如何安装 python-opencv?

如何安装 python-opencv?

我正在尝试为该代码安装 python-opencv。https://github.com/rbgirshick/fast-rcnn

我该怎么做?当我输入 pip install --user python-opencv 时,我得到了

Could not find any downloads that satisfy the requirement python-opencv
Cleaning up...
No distributions at all found for python-opencv

我设法使用安装了 cython 和 easydict

pip install --user cython
pip install --user easydict

答案1

尝试sudo apt-get install python-opencv

答案2

如果你已经安装了 pip,那么就可以这样做

pip3 install opencv-python

相关内容