Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Setup Virtual Environment
- - Install Virtual Environment
- ```
- pip install virtualenv
- ```
- - Test the installation
- ```
- export PATH=$PATH:/home/chankruze/.local/bin
- virtualenv --version
- ```
- - Create A Virtual Environment
- ```
- virtualenv venv_name
- ```
- - Specify python interpreter
- ```
- virtualenv -p /usr/bin/python3 venv_name
- ```
- - Activate Virtual Environment
- ```
- source venv_name/bin/activate
- ```
- ## Setup Django
- - Install Django
- ```
- pip install Django==2.2
- ```
- - Verify Installation
- ```
- >>> import django
- >>> print(django.get_version())
- 2.2
- ```
- or
- ```
- python -m django --version
- ```
- - Deactiave env
- ```
- deactivate
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement