matplotlib 安装问题 python 3
matplotlib installation issue python 3
我正在尝试在 pycharm 内的 ubuntu 14.04 上安装 metaplotlib 并收到以下错误:
TypeError: unorderable types: str() < int()
ubuntu 14.04 64 位
pycharm 运行 python 3
追溯是:
DEPRECATION: --no-install, --no-download, --build, and --no-clean are deprecated. Downloading/unpacking matplotlib Running setup.py (path:/tmp/pycharm-packaging7.tmp/matplotlib/setup.py) egg_info for package matplotlib
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/tmp/pycharm-packaging7.tmp/matplotlib/setup.py", line 155, in <module>
result = package.check()
File "/tmp/pycharm-packaging7.tmp/matplotlib/setupext.py", line 961, in check
min_version='2.3', version=version)
File "/tmp/pycharm-packaging7.tmp/matplotlib/setupext.py", line 445, in _check_for_pkg_config
if (not is_min_version(version, min_version)):
File "/tmp/pycharm-packaging7.tmp/matplotlib/setupext.py", line 173, in is_min_version
return found_version >= expected_version
File "/usr/lib/python3.4/distutils/version.py", line 76, in __ge__
c = self._cmp(other)
File "/usr/lib/python3.4/distutils/version.py", line 343, in _cmp
if self.version < other.version:
TypeError: unorderable types: str() < int()
============================================================================
Edit setup.cfg to change the build options
BUILDING MATPLOTLIB
matplotlib: yes [1.4.3]
python: yes [3.4.0 (default, Apr 11 2014, 13:05:11) [GCC
4.8.2]]
platform: yes [linux]
REQUIRED DEPENDENCIES AND EXTENSIONS
numpy: yes [version 1.9.2]
six: yes [using six version 1.5.2]
dateutil: yes [using dateutil version 2.4.2]
pytz: yes [using pytz version 2015.2]
tornado: yes [using tornado version 4.1]
pyparsing: yes [using pyparsing version 2.0.1]
pycxx: yes [Official versions of PyCXX are not compatible
with matplotlib on Python 3.x, since they lack
support for the buffer object. Using local copy]
libagg: yes [pkg-config information for 'libagg' could not
be found. Using local copy.]
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/tmp/pycharm-packaging7.tmp/matplotlib/setup.py", line 155, in <module>
result = package.check()
File "/tmp/pycharm-packaging7.tmp/matplotlib/setupext.py", line 961, in check
min_version='2.3', version=version)
File "/tmp/pycharm-packaging7.tmp/matplotlib/setupext.py", line 445, in _check_for_pkg_config
if (not is_min_version(version, min_version)):
File "/tmp/pycharm-packaging7.tmp/matplotlib/setupext.py", line 173, in is_min_version
return found_version >= expected_version
File "/usr/lib/python3.4/distutils/version.py", line 76, in __ge__
c = self._cmp(other)
File "/usr/lib/python3.4/distutils/version.py", line 343, in _cmp
if self.version < other.version:
TypeError: unorderable types: str() < int()
============================================================================
Edit setup.cfg to change the build options
有人可以指点一下吗?
谢谢
在 matplotlib 的 github 跟踪器中有一个封闭的 issue。这不是 matplotlib 的问题,而是其他包的问题(讨论中提到了 freetype 和 png)。
根据讨论,主分支中的错误消息更具描述性:
- The following required packages can not be built: * freetype, png
我遇到了同样的错误,并且能够通过安装 libfreetype6-dev 和 libpng12-dev 来解决它。
sudo apt-get install libfreetype6-dev libpng12-dev
感谢@koukouviou 指出上游错误报告,这大大加快了寻找解决方案的过程。
我正在尝试在 pycharm 内的 ubuntu 14.04 上安装 metaplotlib 并收到以下错误:
TypeError: unorderable types: str() < int()
ubuntu 14.04 64 位 pycharm 运行 python 3
追溯是:
DEPRECATION: --no-install, --no-download, --build, and --no-clean are deprecated. Downloading/unpacking matplotlib Running setup.py (path:/tmp/pycharm-packaging7.tmp/matplotlib/setup.py) egg_info for package matplotlib
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/tmp/pycharm-packaging7.tmp/matplotlib/setup.py", line 155, in <module>
result = package.check()
File "/tmp/pycharm-packaging7.tmp/matplotlib/setupext.py", line 961, in check
min_version='2.3', version=version)
File "/tmp/pycharm-packaging7.tmp/matplotlib/setupext.py", line 445, in _check_for_pkg_config
if (not is_min_version(version, min_version)):
File "/tmp/pycharm-packaging7.tmp/matplotlib/setupext.py", line 173, in is_min_version
return found_version >= expected_version
File "/usr/lib/python3.4/distutils/version.py", line 76, in __ge__
c = self._cmp(other)
File "/usr/lib/python3.4/distutils/version.py", line 343, in _cmp
if self.version < other.version:
TypeError: unorderable types: str() < int()
============================================================================
Edit setup.cfg to change the build options
BUILDING MATPLOTLIB
matplotlib: yes [1.4.3]
python: yes [3.4.0 (default, Apr 11 2014, 13:05:11) [GCC
4.8.2]]
platform: yes [linux]
REQUIRED DEPENDENCIES AND EXTENSIONS
numpy: yes [version 1.9.2]
six: yes [using six version 1.5.2]
dateutil: yes [using dateutil version 2.4.2]
pytz: yes [using pytz version 2015.2]
tornado: yes [using tornado version 4.1]
pyparsing: yes [using pyparsing version 2.0.1]
pycxx: yes [Official versions of PyCXX are not compatible
with matplotlib on Python 3.x, since they lack
support for the buffer object. Using local copy]
libagg: yes [pkg-config information for 'libagg' could not
be found. Using local copy.]
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/tmp/pycharm-packaging7.tmp/matplotlib/setup.py", line 155, in <module>
result = package.check()
File "/tmp/pycharm-packaging7.tmp/matplotlib/setupext.py", line 961, in check
min_version='2.3', version=version)
File "/tmp/pycharm-packaging7.tmp/matplotlib/setupext.py", line 445, in _check_for_pkg_config
if (not is_min_version(version, min_version)):
File "/tmp/pycharm-packaging7.tmp/matplotlib/setupext.py", line 173, in is_min_version
return found_version >= expected_version
File "/usr/lib/python3.4/distutils/version.py", line 76, in __ge__
c = self._cmp(other)
File "/usr/lib/python3.4/distutils/version.py", line 343, in _cmp
if self.version < other.version:
TypeError: unorderable types: str() < int()
============================================================================
Edit setup.cfg to change the build options
有人可以指点一下吗? 谢谢
在 matplotlib 的 github 跟踪器中有一个封闭的 issue。这不是 matplotlib 的问题,而是其他包的问题(讨论中提到了 freetype 和 png)。
根据讨论,主分支中的错误消息更具描述性:
- The following required packages can not be built: * freetype, png
我遇到了同样的错误,并且能够通过安装 libfreetype6-dev 和 libpng12-dev 来解决它。
sudo apt-get install libfreetype6-dev libpng12-dev
感谢@koukouviou 指出上游错误报告,这大大加快了寻找解决方案的过程。