virtualenv

时间:2018-06-11 18:54:43

标签: python opencv

现在,如果我在shell运行python3,然后import cv2; cv2.xfeature2d没有错误,它将被导入但是如果我激活了虚拟环境 AttributeError将被提出

我在/usr/local/lib/python3/dist-packages/cv2.python3.....socv2.so~/virtualenv/lib/python3.5/site-packages/相关联,import cv2工作正常但cv2.xfeature2d提升了AttributeError: module 'cv2.cv2' has no attribute 'xfeature2d'

0 个答案:

没有答案