python3 pip install django code example Example 1: install django using pip sudo pip3 install django Example 2: pip install django $ python -m pip install Django