1

我试图安装 matplotlib,但首先我必须在 MobaXterm 中安装 pip,我认为有些事情失败了。

我做了:

python -m ensurepip

apt-get install python3-pip

在这里我不想这样做,但我关闭了 MobaXterm。

然后我尝试重新开始,我得到了:

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

但是,当我尝试安装 matplotlib 时:

pip3 install matplotlib

我得到了:

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

谢谢,对不起,我真的不是一个有经验的程序员。

4

0 回答 0