Complete the code to install Flask using pip.
pip install [1]To install Flask, you use the command pip install flask.
Complete the command to check the installed Flask version.
python -m [1] show flaskYou check the version of an installed package using python -m pip show flask or pip show flask. Here, the command uses python -m pip.
Fix the error in the command to install Flask in a virtual environment.
python -m venv env && env\Scripts\[1] install flaskAfter creating a virtual environment, you use its pip executable to install packages. So the correct command is env\Scripts\pip install flask on Windows.
Fill both blanks to create and activate a virtual environment on Unix-like systems.
python3 -m [1] env && source env/[2]/activate
To create a virtual environment, use python3 -m venv env. To activate it on Unix-like systems, source the env/bin/activate script.
Fill all three blanks to install Flask and verify its installation.
python -m [1] install [2] && python -c "import [3]; print([3].__version__)"
This command installs Flask using pip, then runs a Python command to import Flask and print its version.