Importing Streamlit Error

Hello,
I am having error importing streamlit, but I have it installed in my virtual environment. I could import other packages from same virtual environment except for streamlit. Below is the error message,

[Running] python -u “c:\Users\Dadson\Desktop\LP4_CA\home.py”
Traceback (most recent call last):
File “c:\Users\Dadson\Desktop\LP4_CA\home.py”, line 1, in
import streamlit as st
ModuleNotFoundError: No module named ‘streamlit’

[Done] exited with code=1 in 0.132 seconds

  1. I have my virtual environment activated and also selected python interpreter from my virtual environment.
  2. I am using python and streamlit versions of 3.12.5 and 1.37.1 respectively
  3. I have recreated the virtual environment several times thinking it may have been corrupted but problem persists.
  4. I could see streamlit listed as part of the other packages when I type the command “pip list”
  5. I have uninstalled all packages and reinstalled packages several times
  6. I created a new user account to start afresh but still can’t import streamlit yet I could import other packages.

Kindly help me out.

Apparently you are running pip in one environment and python in another one.