Index: scalene-0.7.5/scalene/scalene_gpu.py
===================================================================
--- scalene-0.7.5.orig/scalene/scalene_gpu.py	2022-12-14 18:53:09.223048351 -0300
+++ scalene-0.7.5/scalene/scalene_gpu.py	2022-12-14 18:53:09.219048296 -0300
@@ -2,8 +2,6 @@
 import os
 from typing import Tuple
 
-import pynvml
-
 
 class ScaleneGPU:
     """A wrapper around the nvidia device driver library (pynvml)."""
@@ -15,6 +13,7 @@
         self.__pid = os.getpid()
         self.__has_per_pid_accounting = False
         with contextlib.suppress(Exception):
+            import pynvml
             pynvml.nvmlInit()
             # Try to actually get utilization and memory usage.
             # If this fails, we disable GPU profiling.
