How to Install Flask with Python Selector


This article provides a guide for how to install Flask with Python Selector for use with cPanel Shared Hosting accounts.

How to Install Flask with Python Selector

To install Flask with Python Selector, follow the steps below:

  1. Register your application with Python Selector.
  2. Connect to your server via SSH as the cPanel user where the application was created. Once connected,
  3. 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. Also see the example below.
    source /home/$cPuser/virtualenv/$AppRootName/$AppVersion/bin/activate && cd /home/$cPuser/virtualenv/$AppRootName/
  4. We can then use pip to install flask:

    pip install flask

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/

Conclusion

You now know how to install Flask with Python Selector.

  • python selector, python
  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

Video: Hotlink Protection in cPanel

This video tutorial provides Step-by-Step instructions for creating custom error pages from...

Video: Create Email Address in cPanel

This video tutorial demonstrates how to create an email address using cPanel Shared Hosting...

Disabling mod_security in cPanel

Mod_security is an apache module that helps to protect your website from various attacks. It is...

Video: Setup Email Forwarder in cPanel

View our Step-by-Step Tutorial Video for Setting up an Email Forwarder in cPanel Shared Hosting.

Install an SSL Certificate Using the AutoInstaller Software in cPanel

This article will describe how to use AutoInstall to install an SSL certificate.The AutoInstall...