Hi Folks,
I changed the port number to 5000 and start to execute the python app.py but the result is not expected. It is throwing an error as below
Error after executing the below commands
thor@host01 /opt/simple-webapp-flask$ sudo python app.py
Traceback (most recent call last):
File “app.py”, line 2, in
from flask import Flask
ImportError: No module named flask
I checked the environment path for current requirement are installed by using below commandoes
import sys
print sys.path ( in the app.py before “from flask import Flask” )
but packages are installing to 2.7 python.
I tried to change the path environment variable when i’m appending (sys.path.append(“/usr/lib64/python3.6/site-packages”) but not working.
and tried to install the pip3 for the requirements.
can you please help me to override the issues .For more please find the below attached screen shots.
Thanks
Govardhan N