The solution for me was as follows:
pip uninstall subprocess32 pip install -U subprocess32
Inside, I received a warning when I tried to import matplotlib :
Python 2.7.13 (default, May 16 2017, 12:02:12) [GCC 6.2.0 20160901] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import matplotlib /home/methuselah/.local/lib/python2.7/site-packages/subprocess32.py:472: RuntimeWarning: The _posixsubprocess module is not being used. Child process reliability may suffer if your program uses threads. "program uses threads.", RuntimeWarning) >>>
After reinstalling subprocess32 warning disappears:
Python 2.7.13 (default, May 16 2017, 12:02:12) [GCC 6.2.0 20160901] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import matplotlib >>>
source share