# Importing Streamlit Error

**URL:** <https://discuss.streamlit.io/t/importing-streamlit-error/78441>\
**Category:** Using Streamlit\
**Tags:** discussion\
**Created:** [August 11, 2024, 10:16pm UTC](https://discuss.streamlit.io/t/importing-streamlit-error/78441 "2024-08-11T22:16:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Emmanuel2](https://avatars.discourse-cdn.com/v4/letter/e/3da27b/32.png) [@Emmanuel2](https://discuss.streamlit.io/u/Emmanuel2)\
**Post date:** [August 11, 2024, 10:16pm UTC](https://discuss.streamlit.io/t/importing-streamlit-error/78441/1 "2024-08-11T22:16:24Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Goyo](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/goyo/32/28219_2.png) [@Goyo](https://discuss.streamlit.io/u/Goyo)\
**Post date:** [August 12, 2024, 3:30pm UTC](https://discuss.streamlit.io/t/importing-streamlit-error/78441/2 "2024-08-12T15:30:01Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/streamlit/original/3X/c/f/cf4c2ee0d938358f82448c5fe4b9c3c91d7ce19c.svg) [@system](https://discuss.streamlit.io/u/system)\
**Post date:** [February 8, 2025, 3:30pm UTC](https://discuss.streamlit.io/t/importing-streamlit-error/78441/3 "2025-02-08T15:30:05Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
