MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / check_termux

Function check_termux

imperative/python/megengine/_env_initlization.py:40–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38
39
40def check_termux():
41 if os.getenv("TERMUX_VERSION"):
42 try:
43 import cv2
44 except Exception as exc:
45 print("Run MegEngine python interface at Android/Termux env")
46 print("!!!You need build opencv-python manually!!!, by run sh:")
47 print(
48 "https://github.com/MegEngine/MegEngine/blob/master/scripts/whl/android/android_opencv_python.sh"
49 )
50 raise exc
51
52
53def check_windows():

Callers 1

check_miscFunction · 0.85

Calls 1

printFunction · 0.85

Tested by

no test coverage detected