diff --git a/lib/utils/hash.py b/lib/utils/hash.py index 4e42bb769..709bcd281 100644 --- a/lib/utils/hash.py +++ b/lib/utils/hash.py @@ -19,7 +19,11 @@ try: except (ImportError, OSError): pass else: - _multiprocessing = multiprocessing + try: + if multiprocessing.cpu_count() > 1: + _multiprocessing = multiprocessing + except NotImplementedError: + pass import gc import os