CodeSolved

Solved Programming Questions & Exercises

Modulanotfoundrror error in Python

Technical question 2038/ Download 107 Views
In Python I will make Modunelotfoundrror error
ModuleNotFoundError: no module named 'requests'
Please guide

2 Answers

Modulanotfoundrror error occurs in Python when you try to enter a library with an import command, but Python does not find that library. Example:
import numpy
If the library is not installed correctly, it will give it:
ModuleNotFoundError: No module named 'numpy'

Solution:
pip install numpy

Well there are two modes, 2) Or you didn't download this module that you should download using the following command in CMD or Terminal in Visual Studio Code:
Pip install requests 

2) There is a typical error that you have to re -type maybe you made a mistake last time !!!
Mohammad.mahdi88 Download

Submit answer

Submitting answers is currently unavailable.

×
×
Close