0
0
Flaskframework~10 mins

Installing Flask - Interactive Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to install Flask using pip.

Flask
pip install [1]
Drag options to blanks, or click blank then click option'
Adjango
Brequests
Cflask
Dnumpy
Attempts:
3 left
💡 Hint
Common Mistakes
Typing 'django' instead of 'flask'.
Forgetting to use pip before install.
2fill in blank
medium

Complete the command to check the installed Flask version.

Flask
python -m [1] show flask
Drag options to blanks, or click blank then click option'
Asetup
Bflask
Cpython
Dpip
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'flask' instead of 'pip' after 'python -m'.
Trying to run 'python -m flask flask --version' which is incorrect.
3fill in blank
hard

Fix the error in the command to install Flask in a virtual environment.

Flask
python -m venv env && env\Scripts\[1] install flask
Drag options to blanks, or click blank then click option'
Apip
Bpython
Cflask
Dvenv
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'python' instead of 'pip' to install packages.
Trying to run 'flask install' which is not a command.
4fill in blank
hard

Fill both blanks to create and activate a virtual environment on Unix-like systems.

Flask
python3 -m [1] env && source env/[2]/activate
Drag options to blanks, or click blank then click option'
Avenv
Bactivate
Cbin
DScripts
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'Scripts' folder on Unix instead of 'bin'.
Forgetting to use 'source' to activate the environment.
5fill in blank
hard

Fill all three blanks to install Flask and verify its installation.

Flask
python -m [1] install [2] && python -c "import [3]; print([3].__version__)"
Drag options to blanks, or click blank then click option'
Apip
Bflask
Dvenv
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'venv' instead of 'pip' to install packages.
Importing a wrong module name.