I am trying to import beautifulsoup4
in a BeeWare app (with its own virtual environment) using the command:
from bs4 import BeautifulSoup
But I get a ModuleNotFoundError: No module named 'bs4'
even though I have installed beautifulsoup4
in my virtual environment and added it to the dependencies in my pyproject.toml
file. What's the issue then? Solutions I have found for regular virtual environments do not seem to apply to BeeWare apps. The issue only arises when I run the briefcase run
command, but not with briefcase dev
.