当我使用 pip 时会发生这种情况:
user1@ubuntu-ipc:~$ pip install python-apt
Collecting python-apt
Using cached https://files.pythonhosted.org/packages/e5/ff/63bb64a103eda6f13364381e983c0121eeacc337a4421d6005ff7dd76741/python-apt-0.7.8.tar.bz2
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-OEhz4q/python-apt/setup.py", line 6, in <module>
from DistUtilsExtra.command import *
ImportError: No module named DistUtilsExtra.command
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-OEhz4q/python-apt/
Run Code Online (Sandbox Code Playgroud)
当我使用 apt 时会发生这种情况:
user1@ubuntu-ipc:~$ sudo apt-get install python-apt
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not …Run Code Online (Sandbox Code Playgroud)