Sunday, 18 October 2015

How to Install Django on Windows 10

1)INSTALL VIRTUALENV
-------------------------------------
a)
goto https://pypi.python.org/pypi/virtualenv

b)
download virtualenv-13.1.2.tar.gz (md5, pgp)

c)
Extract "virtualenv-13.1.2.tar.gz"

d)
Open command prompt then cd to following path
>cd C:\Users\anusree\Downloads\dist\virtualenv-13.1.2

e)
install virtualenv
>python setup.py install





2)CREATE AND ACTIVATE VIRTUALENVIRONMENT
-----------------------------------------------------------------------------

a)
create virtualenv named "myenv"
>python -m virtualenv myenv
>dir

b)
activate virtualenvironment "myenv"
>C:\Users\anusree>.\myenv\Scripts\activate
(myenv) C:\Users\anusree>


3)INSTALL DJANGO
-----------------------------

a)
install Django
(myenv) C:\Users\anusree>pip install django
Collecting django
  Downloading Django-1.8.5-py2.py3-none-any.whl (6.2MB)
    100% |################################| 6.2MB 48kB/s
Installing collected packages: django
Successfully installed django-1.8.5
(myenv) C:\Users\anusree>

b)
verify
(myenv) C:\Users\anusree>python
Python 2.7.10 (default, May 23 2015, 09:40:32) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>> import django
>>>

No comments:

Post a Comment