ModuleNotFoundError: No module named ‘django’ in Python
# 👇️ 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
pip install Django --user
# 👇️ 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
# 👇️ using py alias (Windows)
py -m pip install Django
# 👇️ for Anaconda
conda install -c anaconda django
# 👇️ for Jupyter Notebook
!pip install Django
Để lại một bình luận