Introduction
This article will walk you through installing flask with Python Selector.
Procedure
This article assumes that you have registered the application through Python Selector already, if you need assistance in doing so, we have an article to walk you through that here:
How to register an application with Python Selector
You will need to connect to your server via SSH as the cPanel user where the application was created. Once connected, run the following command where '$cPuser' is your cPanel username, '$AppRootName' is the application name that you chose for the application root box and '$AppVersion' is the version of python you chose:
source /home/$cPuser/virtualenv/$AppRootName/$AppVersion/bin/activate && cd /home/$cPuser/virtualenv/$AppRootName/
Example:
cPanel user = cptech
AppRootName = app-test
AppVersion = 3.7
source /home/cptech/virtualenv/app-test/3.7/bin/activate && cd /home/cptech/virtualenv/app-test/
We can then use pip to install flask:
pip install flask