🐍 Fix ModuleNotFoundError (No Module Named Requests) Python Import Error (If Installed / If Exists)

preview_player
Показать описание
(We're free online community, meet other makers!)

#python #error #fix #fixed #howto

Hey guys in this tutorial let's try to fix ModuleNotFoundError No module named error in cases where the module is already installed (and it already exists.)

# 👇️ in a virtual environment or using Python 2
pip install requests

# 👇️ for python 3 (could also be pip3.10 depending on your version)
pip3 install requests

# 👇️ if you get permissions error
sudo pip3 install requests

# 👇️ if you don't have pip in your PATH environment variable
python -m pip install requests

# 👇️ for python 3 (could also be pip3.10 depending on your version)
python3 -m pip install requests

# 👇️ for Anaconda
conda install -c anaconda requests

00:00 import requests (Running a simple Python program)
00:10 ModuleNotFoundError No module named 'requests' import error
00:35 Still getting ModuleNotFoundError even if already installed, even if module exists
00:50 pip, pip2, pip3 and pip install requests command
01:07 Differences between Python2 and Python3 launchers (or py)
01:20 Check version of python / check version of python3
01:35 Check version of pip pip2 and pip3
02:03 Creating an alias from pip to pip3
02:23 Using pip list, pip2 list and pip3 list to find out which module is installed by which python package installer
03:01 Help if you're still getting ModuleNotFoundError No module named requests after trying to fix it with this video
Рекомендации по теме
Комментарии
Автор

Hi
I'm not able to import package ellipticcurve or ecdsa

Please help me

anusha
Автор

MY GOD I WAS LOOKING FOR A SOLUTION FOR AGES.
Thanks you so much!!
I had requests installed in both pip and pip3(macos) but the problem was that,
when i typed python --version, the version was 3.9 whereas,
when i typed python3 --version, the version was 3.11
So, i just used alias to rename python to python3 and it worked!
again thank you so much!

harshitchandra
Автор

I ran a test (under view>testing) it told me that I had not opened the folder that I had my python file saved in. I had to open the folder and trust the authors, and then the 'requests' was no longer an error. 🤷‍♀

Royaltan
Автор

Hey This was really helpful. My best gratitudes

AB-uoej
Автор

Micropython: ImportError: no module named 'requests.auth' 😞

charlesbuttner
Автор

In my case I had installed 64bit and 32bit versions of python on my PC.After uninstalling 32bit version, issue resolved.

pSL-oygl
Автор

There is no way to fix the error of pip not recognized

frozen_edits.yt
Автор

This was the miracle that god sent to me thanks a lot man😂🎉

MohammadRezaei-uggs