我刚接触 Python 并尝试在此处运行脚本在线代码
但是发生了一个错误:
File "C:\Python27\track.py", line 1,in <module>
import cv
ImportError: No module named cv
有人可以启发我吗?
我刚接触 Python 并尝试在此处运行脚本在线代码
但是发生了一个错误:
File "C:\Python27\track.py", line 1,in <module>
import cv
ImportError: No module named cv
有人可以启发我吗?
安装 OpenCV
https://opencv-python-tutroals.readthedocs.io/en/latest/py_tutorials/py_tutorials.html
它需要这个包才能运行
看看这里http://opencv.willowgarage.com/wiki/InstallGuide%20%3A%20Debian,“让 Python 工作”;
第三个选项对我有用,但那里有一个错误,添加 bashrc 的正确行是
导出 PYTHONPATH=$PYTHONPATH:/usr/local/lib/python2.7/site-packages
不过,这可能会根据您的 python 安装而有所不同。