matplotlib가 우분투 10.10에서 작동하는 데 문제가 있습니다.matplotlib가 우분투에서 작동하지 않습니다 10.10
먼저 apt-get을 사용하여 matplotlib를 설치하고 나중에 0.99 버전을 발견했으며 공식 사이트의 일부 예제 만 제대로 작동하지 않습니다. 그런 다음 1.01 버전을 다운로드하고 0.99 버전을 제거하지 않고 설치합니다. 상황이 더 구체적인하려면, 여기에 구성입니다 :
BUILDING MATPLOTLIB
matplotlib: 1.0.1
python: 2.6.6 (r266:84292, Sep 15 2010, 15:52:39) [GCC
4.4.5]
platform: linux2
REQUIRED DEPENDENCIES
numpy: 1.6.0b1
freetype2: 12.2.6
OPTIONAL BACKEND DEPENDENCIES
libpng: 1.2.44
Tkinter: no
* Using default library and include directories for
* Tcl and Tk because a Tk window failed to open.
* You may need to define DISPLAY for Tk to work so
* that setup can determine where your libraries are
* located. Tkinter present, but header files are not
* found. You may need to install development
* packages.
wxPython: no
* wxPython not found
pkg-config: looking for pygtk-2.0 gtk+-2.0
* Package pygtk-2.0 was not found in the pkg-config
* search path. Perhaps you should add the directory
* containing `pygtk-2.0.pc' to the PKG_CONFIG_PATH
* environment variable No package 'pygtk-2.0' found
* Package gtk+-2.0 was not found in the pkg-config
* search path. Perhaps you should add the directory
* containing `gtk+-2.0.pc' to the PKG_CONFIG_PATH
* environment variable No package 'gtk+-2.0' found
* You may need to install 'dev' package(s) to
* provide header files.
Gtk+: no
* Could not find Gtk+ headers in any of
* '/usr/local/include', '/usr/include', '.'
Mac OS X native: no
Qt: no
Qt4: no
Cairo: 1.8.8
OPTIONAL DATE/TIMEZONE DEPENDENCIES
datetime: present, version unknown
dateutil: 1.4.1
pytz: 2010b
OPTIONAL USETEX DEPENDENCIES
dvipng: no
ghostscript: 8.71
latex: no
pdftops: 0.14.3
[Edit setup.cfg to suppress the above messages]
지금은하기 matplotlib를 가져올 수 있습니다하지만 난 예제 코드를 실행하면, 그것은 바로 종료되고 난 더 결과를 얻을 수 없습니다. 나는 '여러 번 설치'를 시도했는데, 이는 .matplotlib와 distplote 아래의 matplotlib 디렉토리를 모두 지우는 것을 의미한다. 그러나 나는 여전히 일을 끝낼 수 없다.
0.99 버전을 다시 설치하면 더 잘 작동합니다.
아이디어가 있으십니까?
과 : 종속성에 대한 메시지가 변경
: 나는 파이썬 - GTK2-DEV하고 다시 설치 하기 matplotlib를 설치 해결 'pygtk2.0-dev' (또는 유사한)와'gtk-dev' 꾸러미 (이름은 다를 수 있습니다)를 작성한 다음 다시 작성하십시오 ... – ChristopheD