1) INSTALL VIRTUALENV
-------------------------------------
a)
goto https://pypi.python.org/pypi/virtualenv
b)
download virtualenv-20.25.0.tar.gz
https://files.pythonhosted.org/packages/94/d7/adb787076e65dc99ef057e0118e25becf80dd05233ef4c86f07aa35f6492/virtualenv-20.25.0.tar.gz
c)
Extract "virtualenv-20.25.0.tar.gz"
d)
Open command prompt then cd to following path
>cd C:\Users\anusree\Downloads\dist\virtualenv-20.25.0
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\sam>.\myenv\Scripts\activate
(myenv) C:\Users\sam>
3) INSTALL DJANGO
-----------------------------
a)
install Django
(myenv) C:\Users\sam>pip install django
b)
verify
(myenv) C:\Users\sam>python
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>> import django
>>>
No comments:
Post a Comment