Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in executing WebApp.py #88

Open
biswajeetbhatta opened this issue Mar 8, 2022 · 0 comments
Open

Error in executing WebApp.py #88

biswajeetbhatta opened this issue Mar 8, 2022 · 0 comments

Comments

@biswajeetbhatta
Copy link

While running WebApp.py, it's showing ImportError: No module named flask
Again tried installing Flask and the requirements got satisfied. Same error is showing. Please help in fixing the issue.

Thank you.
BISWAJEET BHATTA


biswajeetbhatta@BISWAJEETs-MacBook-Air system % sudo python3 -m pip install flask
Password:
WARNING: The directory '/Users/biswajeetbhatta/Library/Caches/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.
Requirement already satisfied: flask in /Library/Python/3.8/site-packages (2.0.3)
Requirement already satisfied: Werkzeug>=2.0 in /Library/Python/3.8/site-packages (from flask) (2.0.3)
Requirement already satisfied: click>=7.1.2 in /Library/Python/3.8/site-packages (from flask) (8.0.4)
Requirement already satisfied: itsdangerous>=2.0 in /Library/Python/3.8/site-packages (from flask) (2.1.0)
Requirement already satisfied: Jinja2>=3.0 in /Library/Python/3.8/site-packages (from flask) (3.0.3)
Requirement already satisfied: MarkupSafe>=2.0 in /Library/Python/3.8/site-packages (from Jinja2>=3.0->flask) (2.1.0)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
biswajeetbhatta@BISWAJEETs-MacBook-Air system % python WebApp.py
Traceback (most recent call last):
File "WebApp.py", line 19, in
from flask import Flask, render_template, Response, redirect, url_for, request, jsonify, send_file, session, g
ImportError: No module named flask
biswajeetbhatta@BISWAJEETs-MacBook-Air system % python WebApp.py
Traceback (most recent call last):
File "WebApp.py", line 19, in
from flask import flask, render_template, Response, redirect, url_for, request, jsonify, send_file, session, g
ImportError: No module named flask
biswajeetbhatta@BISWAJEETs-MacBook-Air system %

IMG20220308112203

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant