Installing flask
Call the PYTHON3 interpreter to create a flask virtual environment that is not available under Python version 3.4. The path to the PYTHON3 interpreter is first obtained by using the following command:
which Python3
Results:/library/frameworks/python.framework/versions/3.5/bin/python3
Then create a flask project under the current path, named Microflask:
mkdir Microflask
Create a flask virtual environment in the Microflask folder (a Flask folder is created under the current path):
/library/frameworks/python.framework/versions/3.5/bin/python3-m venv Flask
Next, call the virtual environment's PIP to install flask and its extensions (installed in the virtual environment, if you delete the directory caused by the virtual environment, the following installation will be removed):
Flask/bin/pipInstallFlaskflask/bin/pipInstallflask-LoginFlask/bin/pipInstallflask-Openidflask/bin/pipInstallflask-Mailflask/bin/pipInstallsqlalchemy-Migrateflask/bin/pipInstallflask-Whooshalchemyflask/bin/pipInstallflask-Wtfflask/bin/pipInstallflask-Babelflask/bin/pipInstallGuess_languageflask/bin/pipInstallFlipflopflask/bin/pipInstallCoverage
The Python flask small note under Mac