🐍 Fix ModuleNotFoundError: no module named django / python import error (If Installed / If Exists)

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

🐍 Fix ModuleNotFoundError (no module named django) Python Import Error (If Installed / If Exists)

#python #error #fix #fixed #howto

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

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

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

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

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

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

00:00 import django (Running a simple Python program)
00:10 ModuleNotFoundError No module named 'django' import error
00:35 Still getting ModuleNotFoundError even if already installed, even if module exists
00:50 pip, pip2, pip3 and pip install djangocommand
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 django after trying to fix it with this video
Рекомендации по теме
Комментарии
Автор

I was trying to fix similar error for last couple days, and "alias python=python3" saved me. Thank you!

stan-stason
welcome to shbcf.ru