谁有在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发布于 2015-04-09 00:19:57
输出如下:
matplotlib:是1.4.3 python:是[2.7.9 (默认,2015 -03-1 12:57:24) GCC 4.9.2] platform:是linux2
所需的依赖项和扩展
numpy:是的,找不到。pip可以在下面安装它。
six:是的,six不是,found.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
https://stackoverflow.com/questions/29499100
复制相似问题