Python Forum
Beginner Python Error - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Beginner Python Error (/thread-38068.html)



Beginner Python Error - ianmac88 - Aug-30-2022

Hello,

I am extremely new to programming/python and I have been watching thenewboston on YouTube going through his Python Programming playlist. In video 26 he is making a web crawler and when I try to run it I get this message

"ModuleNotFoundError: No module named 'requests'"

Any help on how to fix this? I have looked around a bit and found stuff about installing pip3 or something. I don't know how to do this. Any help is appreciated, thanks!


RE: Beginner Python Error - Pedroski55 - Aug-30-2022

pip should be installed with Python.

Look here for info.


RE: Beginner Python Error - jefsummers - Aug-30-2022

Requests does not come with the standard python installation. Get it from PyPi, install, and then you can import and use.

https://pypi.org/project/requests/


RE: Beginner Python Error - ianmac88 - Aug-30-2022

(Aug-30-2022, 02:49 AM)jefsummers Wrote: Requests does not come with the standard python installation. Get it from PyPi, install, and then you can import and use.

https://pypi.org/project/requests/

okay thank you, how do I do this? I am very new to this stuff


RE: Beginner Python Error - jefsummers - Sep-05-2022

You want to be in whatever environment you want to install. Base is fine if starting out, but using an environment mgr is recommended (such as venv or conda). Then open a terminal window and type
pip install requests

and follow the directions.