通过 pip 安装 🐍

pip install plotly
Python Package

通过 Conda 安装 🐳

conda install -c plotly plotly
Conda Installer

从源码安装 🧰

  1. 克隆仓库:git clone https://github.com/plotly/plotly.git
  2. 进入目录:cd plotly
  3. 安装依赖:pip install -r requirements.txt
  4. 安装 Plotly:pip install .

验证安装 ✅

运行以下代码检查是否成功:

import plotly
print(plotly.__version__)
Python Logo

了解更多安装选项 📚