通过 pip 安装 🐍
pip install plotly
通过 Conda 安装 🐳
conda install -c plotly plotly
从源码安装 🧰
- 克隆仓库:
git clone https://github.com/plotly/plotly.git
- 进入目录:
cd plotly
- 安装依赖:
pip install -r requirements.txt
- 安装 Plotly:
pip install .
验证安装 ✅
运行以下代码检查是否成功:
import plotly
print(plotly.__version__)
了解更多安装选项 📚