opencv是图像处理使用的库
如何在python里面安装opencv呢[1]
主要模块
pip install opencv-python
主要模块和额外的模块
pip install opencv-contrib-python
opencv官网[2]
成功安装了Successfully installed numpy-1.18.2 opencv-contrib-python-4.2.0.34
根据警告,做一下pip升级
总结:
使用pip
1,找到Script目录下的pip.exe
2,使用命令
python -m pip install
思考:
为什么python -m
就能使用pip了呢?
D:ProgramsPythonPython38>python -m pip -V
pip 20.0.2 from D:ProgramsPythonPython38libsite-packagespip (python 3.8)
参考
- ^opencv-python https://pypi.org/project/opencv-python/
- ^opencv https://opencv.org/