Installing matplotlib on Codenvy

限于喜欢 提交于 2019-12-12 03:09:37

问题


Anyone have experience installing matplotlib on Codenvy(https://codenvy.com)?

I keep getting following errors trying to run my application:

[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

My requirements.txt contains:

numpy
matplotlib

回答1:


The output is the following:

matplotlib: yes [1.4.3] python: yes [2.7.9 (default, Mar 1 2015, 12:57:24) [GCC 4.9.2]] platform: yes [linux2]

REQUIRED DEPENDENCIES AND EXTENSIONS

numpy: yes not found. pip may install it below.

six: yes six was not found.pip will attempt to install it after matplotlib.

dateutil: yes dateutil was not found. It is required for date axis support. pip/easy_install may attempt to install it after matplotlib.] pytz: yes pytz was not found. pip will attempt to install it after matplotlib.

tornado: yes tornado was not found. It is required for the WebAgg backend. pip/easy_install may attempt to install it after matplotlib.

pyparsing: yes pyparsing was not found. It is required for mathtext support. pip/easy_install may attempt to install it after matplotlib. pycxx: yes Couldn't import. Using local copy.

libagg: yes pkg-config information for 'libagg' could not be found. Using local copy.

freetype: no The C/C++ header for freetype2 (ft2build.h) could not be found. You may need to install the development package.

png: no pkg-config information for 'libpng' could not be found.

qhull: yes pkg-config information for 'qhull' could not be found. Using local copy.

Some dependencies are missing.

Take a look at similar threads:

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

Installing matplotlib and its dependencies without root privileges



来源:https://stackoverflow.com/questions/29499100/installing-matplotlib-on-codenvy

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!