'from resource import setrlimit ModuleNotFoundError: No module named 'resource'`

tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found
        2022-04-28 10:02:39.911093: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
        Traceback (most recent call last):
          File "D:\ASL_to_English\Tensorflow\models\research\object_detection\builders\model_builder_tf2_test.py", line 24, in <module>
            from object_detection.builders import model_builder
          File "C:\Users\DELL\AppData\Roaming\Python\Python39\site-packages\object_detection\builders\model_builder.py", line 22, in <module>
            from object_detection.builders import box_predictor_builder
          File "C:\Users\DELL\AppData\Roaming\Python\Python39\site-packages\object_detection\builders\box_predictor_builder.py", line 20, in <module>
            from object_detection.predictors import convolutional_box_predictor
          File "C:\Users\DELL\AppData\Roaming\Python\Python39\site-packages\object_detection\predictors\convolutional_box_predictor.py", line 19, in <module>
            from object_detection.core import box_predictor
          File "C:\Users\DELL\AppData\Roaming\Python\Python39\site-packages\object_detection\core\box_predictor.py", line 137, in <module>
            class KerasBoxPredictor(tf.keras.Model):
          File "C:\Users\DELL\AppData\Roaming\Python\Python39\site-packages\tensorflow\python\util\lazy_loader.py", line 62, in __getattr__
            module = self._load()
          File "C:\Users\DELL\AppData\Roaming\Python\Python39\site-packages\tensorflow\python\util\lazy_loader.py", line 45, in _load
            module = importlib.import_module(self.__name__)
          File "C:\Program Files\Python39\lib\importlib\__init__.py", line 127, in import_module
            return _bootstrap._gcd_import(name[level:], package, level)
          File "C:\Users\DELL\AppData\Roaming\Python\Python39\site-packages\keras\api\__init__.py", line 10, in <module>
            from keras.api import keras
          File "C:\Users\DELL\AppData\Roaming\Python\Python39\site-packages\keras\api\keras\__init__.py", line 11, in <module>
            from keras.api.keras import __internal__
          File "C:\Users\DELL\AppData\Roaming\Python\Python39\site-packages\keras\api\keras\__internal__\__init__.py", line 10, in <module>
            from keras.api.keras.__internal__ import legacy
          File "C:\Users\DELL\AppData\Roaming\Python\Python39\site-packages\keras\api\keras\__internal__\legacy\__init__.py", line 10, in <module>
            from keras.api.keras.__internal__.legacy import layers
          File "C:\Users\DELL\AppData\Roaming\Python\Python39\site-packages\keras\api\keras\__internal__\legacy\layers\__init__.py", line 10, in <module>
            from keras.api.keras.__internal__.legacy.layers import experimental
          File "C:\Users\DELL\AppData\Roaming\Python\Python39\site-packages\keras\api\keras\__internal__\legacy\layers\experimental\__init__.py", line 15, in <module>
            from tensorflow.python.util import module_wrapper as _module_wrapper
          File "C:\Users\DELL\AppData\Roaming\Python\Python39\site-packages\tensorflow\python\util\module_wrapper.py", line 21, in <module>
            from resource import setrlimit
        ModuleNotFoundError: No module named 'resource'

while training the SSD mobile net model I am getting this error,but I have installed "resource" in windows using pip install resource

please help me out with this error



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source