【问题标题】:Matplotlib 1.4.0 installation gets stuckMatplotlib 1.4.0 安装卡住
【发布时间】:2014-11-20 18:50:37
【问题描述】:

我正在尝试使用 Python 3.2.3 在 vi​​rtualenv 中安装 matplotlib。我已经尝试从可下载的存档和 pip 安装它。在这两种情况下,安装过程都会卡住,直到我用 ^C 中断它。为什么会这样?

这是安装过程的输出:

(virtenv)scintillo@lakka:~/matplotlib/matplotlib-1.4.0$ python setup.py build
============================================================================
Edit setup.cfg to change the build options

BUILDING MATPLOTLIB
            matplotlib: yes [1.4.0]
                python: yes [3.2.3 (default, Feb 20 2013, 14:44:27)  [GCC
                        4.7.2]]
              platform: yes [linux2]

REQUIRED DEPENDENCIES AND EXTENSIONS
                 numpy: yes [version 1.9.0]
                   six: yes [six was not found.]
              dateutil: yes [dateutil was not found. It is required for date
                        axis support. pip/easy_install may 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 [Official versions of PyCXX are not compatible
                        with Python 3.x.  Using local copy]
                libagg: yes [pkg-config information for 'libagg' could not
                        be found. Using local copy.]
              freetype: yes [version 2.4.9]
                   png: yes [version 1.2.49]
                 qhull: yes [pkg-config information for 'qhull' could not be
                        found. Using local copy.]

OPTIONAL SUBPACKAGES
           sample_data: yes [installing]
              toolkits: yes [installing]
                 tests: yes [nose 0.11.1 or later is required to run the
                        matplotlib test suite.  pip/easy_install may attempt
                        to install it after matplotlib. / mock is required
                        to run the matplotlib test suite.  pip/easy_install
                        may attempt to install it after matplotlib.]
        toolkits_tests: yes [nose 0.11.1 or later is required to run the
                        matplotlib test suite.  pip/easy_install may attempt
                        to install it after matplotlib. / mock is required
                        to run the matplotlib test suite.  pip/easy_install
                        may attempt to install it after matplotlib.]

OPTIONAL BACKEND EXTENSIONS
                macosx: no  [Mac OS-X only]
                qt5agg: no  [PyQt5 not found]
                qt4agg: no  [PyQt4 not found]
^CException KeyboardInterrupt in <Finalize object, dead> ignored
Traceback (most recent call last):
  File "/home/users/scintillo/matplotlib/matplotlib-1.4.0/setupext.py", line 1949, in check_requirements
    msg = p.map(self.callback, [self])[0]
  File "/usr/lib/python3.2/multiprocessing/pool.py", line 251, in map
    return self.map_async(func, iterable, chunksize).get()
  File "/usr/lib/python3.2/multiprocessing/pool.py", line 559, in get
    raise self._value
setupext.CheckFailed: PySide not found

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "setup.py", line 154, in <module>
    result = package.check()
  File "/home/users/scintillo/matplotlib/matplotlib-1.4.0/setupext.py", line 491, in check
    additional_info = self.check_requirements()
  File "/home/users/scintillo/matplotlib/matplotlib-1.4.0/setupext.py", line 1956, in check_requirements
    p.join()
  File "/usr/lib/python3.2/multiprocessing/pool.py", line 465, in join
    p.join()
  File "/usr/lib/python3.2/multiprocessing/process.py", line 147, in join
    res = self._popen.wait(timeout)
  File "/usr/lib/python3.2/multiprocessing/forking.py", line 147, in wait
    return self.poll(0)
  File "/usr/lib/python3.2/multiprocessing/forking.py", line 132, in poll
    pid, sts = os.waitpid(self.pid, flag)
KeyboardInterrupt

【问题讨论】:

  • setupext.CheckFailed: PySide not found?也许你应该安装它。我不知道这是否真的是问题所在,但尝试没有坏处。
  • @Veedrac 不能完全解释冻结,但我会尝试。
  • 这是一个已知问题github.com/matplotlib/matplotlib/issues/3444 问题在于 mpl 不再正式支持的 python 3.2。

标签: python matplotlib pip virtualenv python-3.2


【解决方案1】:

Matplotlib 1.4.0 不支持 Python 3.2。您必须安装 matplotlib 1.3.1。这可以通过 pip 使用命令 pip install matplotlib==1.3.1 来完成。

有关更多详细信息,请参阅此问题:https://github.com/matplotlib/matplotlib/issues/3444

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2019-04-20
    • 1970-01-01
    • 2018-12-31
    • 2019-01-06
    • 1970-01-01
    • 1970-01-01
    • 2018-01-03
    相关资源
    最近更新 更多