command branding logo

Python

Python is general programming langugage mainly used on serverside applications

Python Commands List

Command Name
Command
Command Description
Check Local Python Version
python --version
Check local python version. this maybe python2 or python3 but you may have two versions of python installed
Check Local Python3 Version
python3 --version
Check local python version. this maybe python2 or python3 but you may have two versions of python installed
Create a Virtual ENV
python3 -m venv venv
Using in built python env manager VENV create a virtual environment, creates a venv folder in your directory.
Activate The Current Directory VENV
source venv/bin/activate
Activates Virtual ENV - Your terminal directory should look like - (venv) user@computername foldername %
Install Package Example
pip install django
Installs Django package in your env