ImportError for `python-six` package on Arch Linux


>pip                                                                                                     
Traceback (most recent call last):
File "/usr/bin/pip", line 6, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 49, in <module>
from pkg_resources.extern import six
File "/usr/lib/python3.6/site-packages/pkg_resources/extern/__init__.py", line 61, in load_module
"distribution.".format(**locals())
ImportError: The 'six' package is required; normally this is bundled with this package so if you get this warning, consult the packager of your distribution.

我确实重新安装了pacman -S python以及pacman -S python-setuptoolspacman -S python-packagingpacman -S python-six,没有任何帮助。

现在几乎所有其他 python 应用程序都遵循相同的模式(例如qutebrowserbuku

我认为它发生在我按照该主题的 ArchWiki 指南手动安装vmware-vcli之后(我知道它的 perl,虽然可能无关(。


通过在类似帖子中安装早期版本来降级python-setuptools/var/cache/pacman/pkg并不能解决问题。

我在运行pip3 install --upgrade pip时遇到了完全相同的问题。

但是,pip3.5 install --upgrade pip为我工作。在此升级后,pip3的错误消息消失了。

最新更新