So I am trying to import the python module into my python program and both methods are not working. I have read many different forums on this same issue but it is not clear how to fix this error.
Code Below (Code 1):
import os, sys, inspect, time
src_dir = os.path.dirname(inspect.getfile(inspect.currentframe()))
arch_dir = "LeapSDK/lib/x64" if sys.maxsize > 2**32 else "LeapSDK/lib/x84"
sys.path.insert(0, os.path.abspath(os.path.join(src_dir, arch_dir)))
import Leap
Code Below (Code 2):
import os, sys, inspect, time
sys.path.append("LeapSDK")
sys.path.append("LeapSDK/lib/x64")
import Leap
Both of these methods created the following error:
ModuleNotFoundError: No module named 'Leap'
How can I fix this? Thank you!