Task: Create a CLI Calculator
Step 0: Creating Virtual Environment
$ python -m venv *environment name*
Warning: never use space on environment name
i.e.
$ python -m venv env
in this case, env
will be our virutal environment name
Step 1: Activating Virtual Environment
for cmd:
$ env\scripts\activate
for bash:
$ env/scripts/activate
Step 2: Installing Flask
$ pip install flask
Important notes
- cd = changing directory
- pwd = print working directory
- ll = list view of directory
- .gitignore = ignore any files from uploading on github
- requirements.txt = this file will containe necessary module for this project. you can have this file by this command
pip freeze > requirements.txt