2014-09-25 107 views
1

我試圖用Python 3.2.3在virtualenv中安裝matplotlib。我試着從可下載的檔案和pip安裝它。在這兩種情況下,安裝過程都會卡住,直到我用^ C中斷它。爲什麼會發生?Matplotlib 1.4.0安裝卡住

這裏是在安裝過程中的輸出:

(virtenv)[email protected]:~/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 
+0

'setupext.CheckFailed:PySide不found'?也許你應該安裝它。我不知道這究竟是否是問題,但嘗試沒有什麼壞處。 – Veedrac 2014-09-25 21:13:02

+0

@Veedrac不完全解釋凍結,但我會嘗試。 – Scintillo 2014-09-25 21:14:38

+0

這是一個已知的問題https://github.com/matplotlib/matplotlib/issues/3444問題是與3.2不再官方支持的Python 3.2。 – tacaswell 2014-09-25 22:35:13

回答