【发布时间】:2017-06-25 08:58:34
【问题描述】:
我最近使用brew install openalpr 在我的mac 上成功安装了openalpr。我想在 python 2.7 中使用 openalpr 库,但我很难将两者绑定,需要一些帮助。
我目前在我的项目文件位置获得以下内容:
Python 2.7.11 (default, Jan 22 2016, 08:29:18)
[GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from openalpr import Alpr
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named openalpr
>>>
当我搬到/usr/local/Cellar/openalpr/2.3.0/lib/python2.7/dist-packages/openalpr时
导入有效。如何绑定这个库?谢谢
编辑:我想我已经看到为 openalpr 运行 setup.py 是您绑定的方式,但我不知道在我的文件系统中的哪里可以找到它。
【问题讨论】:
标签: python macos packages openalpr