#๐Ÿ”’ "Module Not Found" (But it is installed)

24 messages ยท Page 1 of 1 (latest)

alpine peakBOT
#

Hey @ornate mango!

Please edit your message to use a code block

Add a py after the three backticks.

```py
print('Hello, world!')
```

This will result in the following:

print('Hello, world!')```
#

@ornate mango

Python help channel opened

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.

paper valley
#

your alias perhaps points to python3 outside your venv

ornate mango
#

alias means that "py" is replaced by "python3" in the terminal

paper valley
#

in your venv type
which py

ornate mango
#
(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

ornate mango
#

just that

paper valley
#

then which python3
something is escaping your venv

ornate mango
#

it is in-place as well

ornate mango
paper valley
#

personally i dont use selenium, ha e your tried playwright?

ornate mango
rugged summit
ornate mango
#

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..

alpine peakBOT
#
Python help channel closed for inactivity

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.