BrandonJoffe / home_surveillance

Home surveillance system with facial recognition
1.22k stars 384 forks source link

Error in executing WebApp.py #88

Open biswajeetbhatta opened 2 years ago

biswajeetbhatta commented 2 years ago

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