MCPcopy Create free account
hub / github.com/davisking/dlib / is_numpy_installed

Function is_numpy_installed

tools/python/test/utils.py:35–42  ·  view source on GitHub ↗

Returns True if Numpy is installed otherwise False

()

Source from the content-addressed store, hash-verified

33 return pickle.loads(data, encoding="bytes")
34
35def is_numpy_installed():
36 '''
37 Returns True if Numpy is installed otherwise False
38 '''
39 if importlib.util.find_spec("numpy"):
40 return True
41 else:
42 return False
43
44def is_python3():
45 '''

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected