#๐ "Module Not Found" (But it is installed)
24 messages ยท Page 1 of 1 (latest)
Hey @ornate mango!
Add a py after the three backticks.
```py
print('Hello, world!')
```
This will result in the following:
print('Hello, world!')```
@ornate mango
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
your alias perhaps points to python3 outside your venv
alias means that "py" is replaced by "python3" in the terminal
in your venv type
which py
(venv) web scraping % python3 scrape.py
Traceback (most recent call last):
File "/Users/f1ssure/Documents/Coding/proto/web scraping/scrape-py", Line 4, in <module> from selenium import WebDriver
ModuleNotFoundError: No module named 'selenium'
I am certain the alias isn't the problem
tested that
then which python3
something is escaping your venv
probably, I have no idea what though
personally i dont use selenium, ha e your tried playwright?
no, I'll take a look into it
Are you sure you installed selenium in the venv?
yes
the pip lives in the venv
this is so weird, it never happened to me
nevermind ๐ I needed to use python3.13 to launch the program..
This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.