Tuesday, 20 October 2015

How To Install Python and Virtualenv In Windows 10

1)
INSTALL PYTHON
---------------------------
a)
Goto https://www.python.org/downloads/

b)
Download and Install Python

c)
Open command prompt and type python to verify the installation

2)
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


3)
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>