Can’t pip install python package in NVIDIA Omniverse

I tried installing google-generativeai package in NVIDIA Omniverse both through the script editor and for my extension using omni.kit.pipapi but wasn’t able to. But I get a warning that the package failed to install (see the screenshot attached).

image

import omni.kit.pipapi
omni.kit.pipapi.install("google-generativeai")
  • Installing the package to my pc’s python installation using any other terminal works fine but can’t install it to omniverse.
  • Tried using Omniverse Code 2022.3.3 and 2023.1.1
  • I’m able to install the google-ai-generativelanguage package