-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
18 lines (16 loc) · 697 Bytes
/
setup.py
File metadata and controls
18 lines (16 loc) · 697 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import subprocess
import sys
def install_requirements():
"""Install required packages from requirements.txt"""
try:
print("Installing required packages...")
subprocess.check_call([sys.executable, "-m", "pip", "install", "-r", "requirements.txt"])
print("✅ All dependencies installed successfully!")
except subprocess.CalledProcessError as e:
print(f"❌ Error installing dependencies: {e}")
sys.exit(1)
if __name__ == "__main__":
install_requirements()
print("\n🚀 Setup complete! You can now run:")
print("- python fetch_data.py # To download OHLCV data")
print("- streamlit run streamlit_app.py # To launch the GUI")