diff --git a/requirements.txt b/requirements.txt
index 10cbecb7b841f5232b5dcaa4b996ac3a247a117a..da70a9d936034d320e0d0f2ece10d7ae792710fd 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,4 +1,7 @@
-# Web framework và các extension
+# Compatibility fix
+setuptools<66.0.0
+
+# Web framework
 Flask==2.2.3
 Flask-SQLAlchemy==3.0.3
 Flask-Migrate==4.0.4
@@ -6,17 +9,12 @@ Flask-Login==0.6.2
 Flask-Bcrypt==1.0.1
 Flask-WTF==1.1.1
 WTForms==3.0.1
-Jinja2==3.1.2
-itsdangerous==2.1.2
-click==8.1.3
-MarkupSafe==2.1.2
 email-validator==2.0.0
 
 # Database
 mysqlclient==2.1.1
 SQLAlchemy==2.0.4
 alembic==1.10.2
-mysql-connector-python==8.0.32
 
 # Data processing and visualization
 pandas==1.5.3
@@ -25,14 +23,6 @@ matplotlib==3.7.1
 openpyxl==3.1.2
 Pillow==9.5.0
 reportlab==4.0.0
-seaborn==0.12.2
-plotly==5.14.1
-
-# File handling
-pyexcel==0.7.0
-pyexcel-xlsx==0.6.0
-pypdf2==3.0.1
-XlsxWriter==3.0.9
 
 # Utilities
 python-dotenv==1.0.0
@@ -44,13 +34,6 @@ requests==2.28.2
 pdfkit==1.0.0
 xlsxwriter==3.0.9
 beautifulsoup4==4.12.0
-lxml==4.9.2
-markdown==3.4.1
-PyYAML==6.0
-python-dateutil==2.8.2
-six==1.16.0
-wrapt==1.15.0
-unicodecsv==0.14.1
 
 # Development & Testing
 pytest==7.3.1
@@ -59,5 +42,4 @@ coverage==7.2.2
 black==23.1.0
 flake8==6.0.0
 isort==5.12.0
-autopep8==2.0.2
-mypy==1.1.1
+mypy==0.991 
\ No newline at end of file