Blog‎ > ‎

Django on Bash on Windows

posted Nov 13, 2017, 9:46 PM by MUHAMMAD MUN`IM AHMAD ZABIDI   [ updated Nov 13, 2017, 9:49 PM ]
Assuming you have Ubuntu on Windows installed.

From CMD prompt:

C:> lxrun update

Inside BASH

$ sudo apt-get update
$ sudo apt-get upgrade

Now run Python

$ python --version
Python 2.7.12

Install PIP

$ sudo -i
# apt-get install python-pip
# exit

Install VirtualEnv

$ sudo apt-get install virtualenv
$ cd my_project_folder
$ virtualenv venv
$ source venv/bin/activate
(venv) $ deactivate

Install Django

$ source venv/bin/activate
(venv) $ pip install --upgrade pip
(venv) $ pip install django




Comments