No module named 'playwright'

this library is installed in venv. It works fine when I don’t run streamlit, but when I try to run streamlit, I can’t find the module.

from playwright.sync_api import sync_playwright, Playwright
from dotenv import load_dotenv
import os
import logging
import streamlit as st
import sqlite3
from bs4 import BeautifulSoup
import requests
from time import sleep

Do I need to do something additional to run it in streamlit? I searched but couldn’t find anything.

Traceback:
File "C:\Users\eymen\anaconda3\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 565, in _run_script
    exec(code, module.__dict__)
File "C:\Users\eymen\OneDrive\Desktop\Yazılım Dosyaları\playwright\stst\main.py", line 1, in <module>
    from playwright.sync_api import sync_playwright, Playwright

Try this guide to fix your issue.

You need to run streamlit in the same environment where playwright is installed.