最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

python - Module (ibm_cloud_sdk_core) not found even after installing relevant package - Stack Overflow

programmeradmin1浏览0评论

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'

发布评论

评论列表(0)

  1. 暂无评论