omermazig/.virtualenvs/fixi/lib/python3.6/site-packages/pip/locations.py", line 9, in <module> File "/home/omermazig/.virtualenvs/fixi/lib/python3.6/distutils&
: The virtualenv distutils package at %s appears to be in the same location as the system distutils?dist imported from distutils?distutils.cmd imported from setuptools.dist
? dist
我试图使用pip在3.6和3.7版本上安装一些软件包,使用'python3.7 -m pip安装包‘,但是,我得到了以下错误:
ModuleNotFoundError: No module named 'distutils.util我已经安装了python3-distutils和python3-distutils-extra,但是pip只适用于python3.8。
网上找到的解决方案都与确保安装了python3-distutils有关。我已验证python3-disutils是否已安装。/usr/lib/python3.8/distutils看起来很好,只是因为某些原因没有被选中。File "/usr/lib/python3/dist-packages/pip/_internal/cli/cmdoptions.py", line 19, in <module>