[Python] Module (ibm_cloud_sdk_core) not found even after installing relevant package

Discussão em 'Python' iniciado por Stack, Março 6, 2025.

  1. Stack

    Stack Membro Participativo

    I am trying to run the following project on my own machine: (SQL Code Generation IBM WatsonX)

    After installing the requirements with

    pip3 install -r requirements.txt


    Activating the environment, and running

    python3 template.py


    I am seeing the following error: "C:\Users\userName\folder\client-env\sql-code-generation\template.py", line 1, in from ibm_cloud_sdk_core.authenticators import IAMAuthenticator ModuleNotFoundError: No module named 'ibm_cloud_sdk_core'

    I have tried upgrading pip, reinstalling and upgrading the necessary package, and even downloading the (IBM Watson python sdk) directly and copying its contents to my project:

    python.exe -m pip install --upgrade pip
    pip3 install ibm-watson
    pip3 install --upgrade ibm-watson


    To no avail. Why isn't this module being detecting by my python project?

    I am using windows powershell, I activated my virtual env with .\Scripts\activate.ps1

    I tried running the project with

    python3 template.py


    expecting the project to run, but instead I got a ModuleNotFoundError: "C:\Users\userName\folder\client-env\sql-code-generation\template.py", line 1, in from ibm_cloud_sdk_core.authenticators import IAMAuthenticator ModuleNotFoundError: No module named 'ibm_cloud_sdk_core'

    Continue reading...

Compartilhe esta Página