1

I was trying to install matplotlib but first I had to install pip in MobaXterm and I think something failed.

I did:

python -m ensurepip

apt-get install python3-pip

Here I didn't want to, but I closed MobaXterm.

Then I tried starting again and I got:

Found package python3-pip
Package python3-pip is already installed, skipping

But then, when I try to install matplotlib:

pip3 install matplotlib

And I got:

Traceback (most recent call last):
  File "/bin/pip3", line 7, in <module>
    from pip import main
  File "/usr/lib/python3.4/site-packages/pip/__init__.py", line 13, in <module>
    from pip.utils import get_installed_distributions, get_prog
  File "/usr/lib/python3.4/site-packages/pip/utils/__init__.py", line 22, in <module>
    from pip._vendor import pkg_resources, six
  File "/usr/lib/python3.4/site-packages/pip/_vendor/pkg_resources/__init__.py", line 36, in <module>
    import plistlib
  File "/usr/lib/python3.4/plistlib.py", line 65, in <module>
    from xml.parsers.expat import ParserCreate
  File "/usr/lib/python3.4/xml/parsers/expat.py", line 4, in <module>
    from pyexpat import *
ImportError: No such process

Thank you and sorry, I'm really not an experienced programmer.

Mr. T
  • 11,960
  • 10
  • 32
  • 54
annol
  • 11
  • 1
  • 1
    Pyexpat is a standard module and if it's not there your entire python environment is probably screwed. Nuke it from orbit. Only way to be sure. (Also make sure you have a working expat too) – CJR Nov 23 '20 at 00:11

0 Answers0