【发布时间】:2018-04-26 08:16:41
【问题描述】:
我已经在 Linux Mint 上安装了 OpenCV,我可以在 python 中导入它
(cv_env)➜ cv_env python
Python 2.7.6 (default, Oct 26 2016, 20:30:19)
[GCC 4.8.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv
>>> import cv2
>>> import numpy
>>> import scipy
但是当我想在 pip freeze 中看到它时,它并没有出现:
(cv_env)➜ cv_env pip freeze
argparse==1.2.1
caffi==1.0.2
coffee==0.1.0
ffmpeg-python==0.1.6
future==0.16.0
imutils==0.4.3
numpy==1.13.3
pandas==0.20.3
python-dateutil==2.6.1
pytz==2017.2
scipy==0.19.1
six==1.11.0
wsgiref==0.1.2
另外,我尝试通过 PyCharm 的 Project Interpreter 导入它。它想用 pip 安装。 (pip install opencv-python 和 pip install cv2)
当我安装它时,我关注了these steps
什么是我看不到的问题?
【问题讨论】:
标签: python linux opencv pip freeze