huhan3000/tools/setup/install-viz-tools.sh

16 lines
534 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
# 安装可视化工具
echo "📦 安装可视化依赖..."
# 使用pipx安装独立的可视化工具
pipx install matplotlib || echo "matplotlib安装失败继续..."
pipx install seaborn || echo "seaborn安装失败继续..."
# 或者创建虚拟环境
python3 -m venv viz-env
source viz-env/bin/activate
pip install matplotlib seaborn pandas numpy networkx plotly
echo "✅ 可视化工具安装完成!"
echo "使用方法: source viz-env/bin/activate && python tools/visualization/historical_data_viz.py"