MXNetError: ImageRec need opencv to process

I want to train a deep learning model using Nvidia Xavier NX script on Mxnet and keep encountering the following error and I’m not sure what the issue is:

Traceback (most recent call last):
File “fine_tune_cars.py”, line 36, in
preprocess_threads=config.NUM_DEVICES * 2)
File “/usr/local/lib/python3.6/dist-packages/mxnet/io/io.py”, line 969, in creator
ctypes.byref(iter_handle)))
File “/usr/local/lib/python3.6/dist-packages/mxnet/base.py”, line 246, in check_call
raise get_last_ffi_error()
mxnet.base.MXNetError: Traceback (most recent call last):
File “/home/nvidia/mxnet/mxnet/src/io/iter_image_recordio_2.cc”, line 260
MXNetError: ImageRec need opencv to process

It keeps saying that it needs Opencv even though I have Opencv 4.5 installed on there. I looked elsewhere on the internet and and it mentioned to make USE_OPENCV = 1 on your config.mk file but that didn’t make a difference. Does anyone have any ideas on what could be the issue? Thanks.