【发布时间】:2016-10-21 06:04:07
【问题描述】:
我正在尝试在 python 中运行 Leap Motion 的基础知识。
import os, sys, inspect, thread, time
代码可以在这里看到.. http://pastie.org/10883595
我收到一个错误....
Traceback (most recent call last):
File "Sample.py", line 6, in <module>
import Leap
ImportError: No module named Leap
文件/usr/bin/Playground_Data/Plugins/x86_64/libLeap.so存在,
我可以将 /usr/bin 添加到 PYTHONPATH 但它仍然找不到它。
我使用的是 ubuntu 16.04。
有什么办法可以让它找到图书馆吗?
凯文
【问题讨论】:
-
你能在
import Leap之前做print(sys.path)吗? -
你的 Leap.py 在哪里?
标签: python leap-motion