How to resolve setup.py egg_info did not run successfully

Hi,
I am in the very initial stages of learning python. I was hoping that someone would be able to resolve the “setup.py egg_info did not run successfully”. I am using Linux Mint and have a Python version of 3.10.12

Hey Rashnavi ummmh so what were you upto when you encountered the error… share the whole error info… this could be a dependency issue like you need to have build-essentials installed… but first things did you do the norm apt update && upgrade

Thanks for the response Kyle:

from flask import Flask, render_template, request
from flask_mysqldb import MySQL
app = Flask(name)
app.config[‘MYSQL_HOST’] = ‘localhost’
app.config[‘MYSQL_USER’] = ‘root’
app.config[‘MYSQL_PASSWORD’] = ‘’
app.config[‘MYSQL_DB’] = ‘pythonbasicoperation’
mysql = MySQL(app)
@app.route(“/”)
def Home():
daysname = [“Mon”,“Tue”,“Wed”,“Thur”,“Fri”,“Sat”,“Sun”]
return render_template(“index.html”,days=daysname)
@app.route(“/about”)
def About():
return render_template(“about.html”)

This is what I was trying to do and the error that I got was:

from flask_mysqldb import MySQL
ModuleNotFoundError: No module named ‘flask_mysqldb’

Oh I see … for starters have you installed that module pip install flask_mysqldb

yeah, I tried, but got "Defaulting to user installation because normal site-packages is not writeable
ERROR: Invalid requirement: ‘flask_’ "

Hey did you get the package name correctly try pip install Flask-MySQLdb
which OS are you using while we at it and lastly hope you are using virtual environment.
Just recalled you are using Linux lol nywy check this and try
https://stackoverflow.com/questions/58957474/how-to-install-flask-mysqldb-for-python
lemme know

tried all the solutions in the given link but the problem persists. Sorry for the late response