[PYTHON] What to do if you get an Import Error when importing matplotlib with Jupyter

When I touched numpy with Jupyter and did import matplotlib.pyplot as plt

ImportError: libXext.so.6: cannot open shared object file: No such file or directory

And

ImportError: libSM.so.6: cannot open shared object file: No such file or directory

And

libXrender.so.1: cannot open shared object file: No such file or directory

How to deal with when it comes out

yum install libXext.x86_64
yum install libSM.x86_64
yum install libXrender.x86_64

If an import error occurs, use `yum search <library name>` on the Linux side to list the libraries and install the appropriate one.

For example

ImportError: libSM.so.6: cannot open shared object file: No such file or directory

At that time

yum search libSM

Select the one to be installed depending on the environment from the list and do `yum install`.

I just dealt with the fact that the error is displayed ...

Recommended Posts

What to do if you get an Import Error when importing matplotlib with Jupyter
What to do if you get an error when importing matplotlib in Python (Mac)
What to do if you get an error when installing python with pyenv
What to do if you get an OpenSSL error when installing Python 2 with pyenv
What to do if an error occurs when importing numpy with VScode
What to do if you get an error when trying to load mnist
What to do if you get an error when installing Dlib (Ubuntu)
What to do if you get an Undefined error when trying to use pip with pyenv
What to do when an error occurs with import _ssl
[Beanstalk] What to do when an error occurs with import uuid
What to do if you get an error when running "certbot renew" in CakePHP environment
[Python] What to do if you get a ModuleNotFoundError when importing pandas using Jupyter Notebook in Anaconda
What to do if you get an "unknown service" error from your gRPC server
What to do if you get the error ʻERR_FEATURE_UNAVAILABLE_ON_PLATFORM` when using ts-node-dev on Linux
What to do if you run python in IntelliJ and end with an error
What to do if you get an error when trying to send a message in tasks.loop () immediately after startup
What to do if you get Swagger-codegen in python and Import Error: No module named
What to do if you couldn't send an email to Yahoo with Python.
What to do if you get lost in file reference with FileNotFoundError
What to do if pyenv install does not proceed with an error
What to do if you get a TypeError with numpy min, max
What to do if you get Could not fetch URL 443 with pip
What to do if you get an error saying c compiler cannot create executables in configure
What to do if you get a must override `get_config` error when trying to model.save in Keras
What to do if you get an error when vagrant up when you enable public_network or private_network on Vagrant + Arch Linux → Install netctl
What to do if you get a "No versions found" error in pipenv
What to do if you get angry with swapon failed: Operation not permitted
If you get a long error when tabbing an interactive shell with Anaconda
What to do if you get an error like'Qstring' has already been set to version 1 using mne python
What to do if you get a "Wrong Python Platform" warning when using Python with the NetBeans IDE
What to do if you get angry with "Value Error: unknown local: UTF-8" in python manage.py syncdb
What to do if you get a Permission denied (public key) error when trying to pull on Github
EC2 / Amazon Linux2: What to do if you get an "unable to execute'gcc': No such file or directory" error with pip install
[AWS] What to do when you want to pip with Lambda
What to do if you get "(35,'SSL connect error')" in pycurl (one of them)
What to do if you get "coverage unknown" in Coveralls
What to do if you can't sort files with subscripts
What to do if you are told "Import Error: cannot import name'HTTPSHandler'" when building a virtual environment using virtualenv
What to do if an error occurs when loading a python project created with poetry into VS Code
What to do if you get a Call with too many input arguments error at DoAndReturn in a golang test
What to do if you get the error "Error: opencv3: Does not support building both Python 2 and 3 wrappers" when installing openCV 3
What to do if you get a Cannot retrieve metalink for repository error in yum
What to do if you get an Undefined error:'Module_six_moves_urllib_parse' object has no attribute'urlencode' on MacOS
What to do if you can't install pyaudio with pip #Python
What to do if you get a minus zero in Python
I get an error when trying to install maec 4.0.1.0 with pip
What to do if you can't build your project with Maven
What to do when you get "I can't see the site !!!!"
If you should have pip installed but get an Import error
I get an error with import pandas.
When I get an error with PyInstaller
What to do if you get angry with'vertices' must be a 2D list ... in matplotlib arrow
What to do if you get angry if you don't have libxml / xmlversion.h when installing lxml on CentOS
What to do if pip --user returns an error in a virtual environment created with pyenv
What to do if you can't find well with grep's -f option
What to do if you get angry in TensorFlow v2 without attribute'app'
What to do if you get stuck during Anaconda installation on Linux
[Python] What to do when an error related to SSL authentication is returned
What to do if you can't install with pip in babun environment
[OSX] [pyenv] What to do when an SSL error occurs in pip
What to do when psycopg2 throws an error when pipenv lock under Pipenv environment