【问题标题】:I'm using a Python fingerprint sensor in Java,我在 Java 中使用 Python 指纹传感器,
【发布时间】:2018-09-18 20:54:50
【问题描述】:
public void fingerprint() {
    System.setProperty("python.cachedir.skip", "true");
    PythonInterpreter pi = new PythonInterpreter();
    pi.execfile("/usr/share/doc/python-fingerprint/examples/example_search.py");
}

文件“/home/pi/pyfingerprint/src/debian/python-fingerprint/usr/share/doc/python-fingerprint/examples/example_search.py​​”,第 12 行,在 从 pyfingerprint.pyfingerprint 导入 PyFingerprint ImportError: 没有名为 pyfingerprint 的模块

我在 Java 中使用 Python 指纹传感器,但出现了错误。 我不知道该怎么做......;帮帮我。

【问题讨论】:

  • 试试pip install pyfingerprint
  • 找不到满足 pyfingerprint 要求的版本(来自版本:)没有为 pyfingerprint 找到匹配的发行版我收到此错误。

标签: java python jython raspberry-pi3 fingerprint


【解决方案1】:

将此 repo https://github.com/bastianraschke/pyfingerprint/tree/Development/src/files 中的 pyfingerprint 文件夹复制到您的站点包文件夹

【讨论】:

  • 从上面的 url 下载 pyfingerprint 文件夹,然后使用 windows 转到 "C:\\Lib\site-packages" 并将下载的 pyfingerprint 粘贴到那里。跨度>
猜你喜欢
  • 1970-01-01
  • 2017-09-22
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多