민서네집

Docker 환경에서 %matplotlib qt 가 에러남. 본문

Python

Docker 환경에서 %matplotlib qt 가 에러남.

브라이언7 2016. 9. 7. 19:49

Docker 환경에서 %matplotlib qt 가 Import 에러남.


ImportError: Matplotlib qt-based backends require an external PyQt4, PyQt5,

or PySide package to be installed, but it was not found.


(python3) root@bdfef6c5464a:~/data# pip install -U pyqt5

Collecting pyqt5

  Downloading PyQt5-5.7-cp35-cp35m-manylinux1_x86_64.whl (89.8MB)

    100% |################################| 89.8MB 13kB/s

Collecting sip (from pyqt5)

  Downloading sip-4.18.1-cp35-cp35m-manylinux1_x86_64.whl (60kB)

    100% |################################| 61kB 3.4MB/s

Installing collected packages: sip, pyqt5

Successfully installed pyqt5-5.7 sip-4.18.1


(python3) root@bdfef6c5464a:~/data# pip install -U PySide

Collecting PySide

  Downloading PySide-1.2.4.tar.gz (9.3MB)

    100% |################################| 9.3MB 132kB/s

    Complete output from command python setup.py egg_info:

    only these python versions are supported: [(2, 6), (2, 7), (3, 2), (3, 3), (3, 4)]


    ----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-8qly_lz5/PySide/


PySide 는 python 버젼이 3.5 버젼을 지원하지 않아서 설치 안되는것 같구요.


%matplotlib qt  하니까 

 : cannot connect to X server

이라고 나오면서 jupyter 커널이 죽고 restart 되네요.

Comments