As @Chandu said, when you run flask run it uses the global python path. Instead activate local environment and run it like this:
flask run
python3 -m flask run