【问题标题】:Installation of matplotlib using pip使用 pip 安装 matplotlib
【发布时间】:2018-01-31 11:28:35
【问题描述】:

我想在天蓝色虚拟机上安装matplotlib。由于安全原因,我无法访问互联网。

我已按照以下步骤进行操作:

  1. 从 python 索引门户网站下载 matplotlib 包
  2. conda提示执行pip install matplotlib-2.1.0.tar.gz,它给了我Failed building wheel for matplotlib错误

所以我正在尝试通过 matplotlib-winbuild 在 Windows Wheels 上构建 Matplotlib:https://github.com/jbmohler/matplotlib-winbuild

我已经从 github 下载并提取 matplotlib-master、matplotlib-winbuild-master 并执行 python matplotlib-winbuild\buildall.py 这需要 Microsoft vs 2010 C++ 但我已经安装了 Microsoft vs 2014 C++ 因为我正在使用 python 3.6

我已经按照以下问题中给出的答案进行了搜索和尝试,但没有帮助。

Offline Installation of python & pip
Getting error while using pip installation

由于代理问题,我不想使用 conda 安装 matplotlib 我该怎么办?

【问题讨论】:

标签: python python-3.x matplotlib


【解决方案1】:

您可以下载.whl(包含编译后的代码)而不是下载.tar.gz(包含源代码),例如参见pypi page for matplotlib

现在您需要获取正确的构建,您可以轻松查看名称,在机器上复制和安装,如下所示:

pip install whatever_lib.whl

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-02-23
    • 2016-02-04
    • 2018-07-05
    • 2022-01-17
    • 1970-01-01
    • 1970-01-01
    • 2021-02-17
    相关资源
    最近更新 更多