【问题标题】:Installing matplotlib on Codenvy在 Codenvy 上安装 matplotlib
【发布时间】:2015-06-12 11:50:18
【问题描述】:

谁有在 Codenvy(https://codenvy.com) 上安装 matplotlib 的经验?

我在尝试运行我的应用程序时不断收到以下错误:

[DOCKER]le "/usr/lib/python3.4/distutils/version.py", line 343, in _cmp

[DOCKER]

[DOCKER]if self.version < other.version:

[DOCKER]

[DOCKER]Error: unorderable types: str() < int()

[DOCKER]

[DOCKER]------------------------------------

[DOCKER]     Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-tcimm8pc/matplotlib

[DOCKER][ERROR] The command [/bin/sh -c cd /tmp/application && sudo virtualenv /env && sudo /env/bin/pip install -r requirements.txt] returned a non-zero code: 1

[ERROR] We are having trouble starting the runner and deploying application Python. Either necessary files are missing or a fundamental configuration has changed.

[ERROR] Unable to retrieve the application logs from the runner.: You tried to detect unknown message. Please, check your message. Your message: The command [/bin/sh -c cd /tmp/application && sudo virtualenv /env && sudo /env/bin/pip install -r requirements.txt] returned a non-zero code: 1

我的 requirements.txt 包含:

numpy
matplotlib

【问题讨论】:

    标签: python matplotlib codenvy


    【解决方案1】:

    输出如下:

    matplotlib:是的 [1.4.3] python: 是 [2.7.9 (default, Mar 1 2015, 12:57:24) [GCC 4.9.2]] 平台: 是 [linux2]

    所需的依赖和扩展

    numpy:是的,没有找到。 pip 可以安装在下面。

    六:是的,没有找到六。pip 将在 matplotlib 之后尝试安装它。

    dateutil:是的 dateutil 未找到。它是日期轴支持所必需的。 pip/easy_install 可能会在 matplotlib 之后尝试安装它。] pytz:是的,没有找到 pytz。 pip 将在 matplotlib 之后尝试安装它。

    龙卷风:是的,没有找到龙卷风。 WebAgg 后端需要它。 pip/easy_install 可能会在 matplotlib 之后尝试安装它。

    pyparsing: 是的 pyparsing 没有找到。它是数学文本支持所必需的。 pip/easy_install 可能会尝试在 matplotlib 之后安装它。 pycxx:是的 无法导入。使用本地副本。

    libagg: 是的,找不到“libagg”的 pkg-config 信息。使用本地副本。

    freetype: no 找不到 freetype2 (ft2build.h) 的 C/C++ 头文件。您可能需要安装开发包。

    png:找不到“libpng”的 pkg-config 信息。

    qhull:是的,找不到“qhull”的 pkg-config 信息。使用本地副本。

    缺少一些依赖项。

    看看类似的线程:

    Matplotlib compilation error: TypeError: unorderable types: str() < int()

    Installing matplotlib and its dependencies without root privileges

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-10-31
    • 2014-10-27
    • 2021-05-15
    • 1970-01-01
    • 1970-01-01
    • 2017-11-03
    • 2014-05-15
    • 2021-04-10
    相关资源
    最近更新 更多