I have gone through and created a Python3 virtualenv per the Python Sample config (https://docs.aws.amazon.com/cloud9/latest/user-guide/sample-python.html):
virtualenv --version
which python
unalias python
python --version
python3 --version
which python36
cd ~/environment/
virtualenv -p /usr/bin/python36 vpy36
source vpy36/bin/activate
python --version
deactivate
alias python=/usr/bin/python27
I then pip install flask successfully.
When I try to run a sample hello world flask app I am presented with the following error:Traceback (most recent call last):
File “/home/ec2-user/environment/flask_init/hello.py”, line 3, in
from flask import Flask, request, render_template
ModuleNotFoundError: No module named ‘flask’
I am able to run from the cli, but that does not enable me to be able to use the debugger.
I would appreciate any assistance on this.