from google import genai fails even though I installed a Google-related package.
Why this happens
Google maintains several similarly named Python libraries. Installing legacy or adjacent packages will not provide the modern google.genai namespace.
Answer 1: Install the expected package in the active environment
python -m pip install -U google-genai
python -c "from google import genai; print('SDK import succeeded')"
Running python -m pip ensures installation into the active Python executable path.
