-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathinstall_dependencies.py
More file actions
42 lines (35 loc) · 1.06 KB
/
install_dependencies.py
File metadata and controls
42 lines (35 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/usr/bin/env python3
"""
Quick installer for FraudGuard dependencies
"""
import subprocess
import sys
def install_package(package):
"""Install a package using pip"""
try:
print(f"📦 Installing {package}...")
result = subprocess.run([sys.executable, "-m", "pip", "install", package],
capture_output=True, text=True)
if result.returncode == 0:
print(f"✅ {package} installed successfully")
else:
print(f"❌ Failed to install {package}: {result.stderr}")
except Exception as e:
print(f"❌ Error installing {package}: {e}")
def main():
packages = [
"flask",
"pandas",
"numpy",
"scikit-learn",
"python-dotenv",
"google-generativeai"
]
print("🚀 Installing FraudGuard dependencies...")
print("=" * 50)
for package in packages:
install_package(package)
print("\n🎉 Installation complete!")
print("Run: python original_fraud_ui.py")
if __name__ == "__main__":
main()