Couldn't import apex.fp16_utils in 10c_fp16.ipynb

I couldn’t import apex.fp16_utils in notebook: 10c_fp16.ipynb.

import apex.fp16_utils as fp16

I installed apex in the notebook using pip, but I still couldn’t import it.

 ! pip install apex

I found the solution here. I entered the following command in the Jupyter terminal and from inside the notebook. I don’t which one did it, but I can now import the module.

 ! git clone --recursive