Install Django Framework in Linux Mint 18/Ubuntu with Python pip

preview_player
Показать описание
Hello internet! Welcome to this video. Here we'll install Django, a web framework using python pip in linux mint 18.1. Try the commands below:

alias python=python3 #sets default python from python2 to python 3

sudo apt-get install python3-pip

# Prefix the next command with sudo if it gives a permission denied error

pip3 install virtualenv # if it fails, try: sudo pip3 install virtualenv

pip3 install --upgrade pip

pip install Django # If this shows error

#OR if you want to keep django seperate, then try the codes below:

virtualenv --python=`which python3` ~/.virtualenvs/djangodev

source ~/.virtualenvs/djangodev/bin/activate # line 19

#$. ~/.virtualenvs/djangodev/bin/activate #try this if line 19 fails

pip install Django

# now whenever you want to create a new django project or work with Django, #simply paste line 19 and then django-admin startproject YourSite or some other #commands
Рекомендации по теме
visit shbcf.ru