如何在虚拟环境中的 Mac 10.7 上安装 Matplotlib?

要在virtualenv 中安装 Matplotlib ,我们可以在终端中执行以下步骤 -

  • vritualenv <env_name e.genv>

  • 源环境/bin/激活

  • pip 安装 matplotlib

  • pip冻结>需求.txt

  • cat requirements.txt (查看 Matplotlib 详细信息)