依存関係が満たされていないため、Mesonをインストールできず、解決する方法がないと思いますか?

依存関係が満たされていないため、Mesonをインストールできず、解決する方法がないと思いますか?

最近、UbuntuからDebian 10に切り替えました。 Mesonをインストールしようとしてエラーが発生します。私は何が間違っていましたか?

mesonを複製すると、python3 setup.py install次のエラーが発生します。

Traceback (most recent call last):
  File "setup.py", line 24, in <module>
    from setuptools import setup
ModuleNotFoundError: No module named 'setuptools'

設定ツールをインストールします。

sudo apt-get install python3-setuptools
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 python3-setuptools : Depends: python3-pkg-resources (= 33.1.1-1) but 40.8.0-1 is to be installed
E: Unable to correct problems, you have held broken packages.

不足しているパッケージを修復してみてください

sudo apt-get update --fix-missing
Ign:1 http://ftp.debian.org/debian stretch InRelease
Hit:2 http://ftp.debian.org/debian stretch Release

python3-pkg-resourcesをインストールしてみてください。

$ sudo apt install python3-pkg-resources
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python3-pkg-resources is already the newest version (40.8.0-1).
python3-pkg-resources set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

この時点で私はまったく手がかりがありませんでした。重要なことを理解していないことは明らかです。どんな助けでも大変感謝します。

--編集:pip3 install mesonこれを試みた後にバックトレースエラーが発生しました。

$ pip3 install meson
Traceback (most recent call last):
  File "/usr/bin/pip3", line 9, in <module>
    from pip import main
  File "/usr/lib/python3/dist-packages/pip/__init__.py", line 26, in <module>
    from pip.utils import get_installed_distributions, get_prog
  File "/usr/lib/python3/dist-packages/pip/utils/__init__.py", line 23, in <module>
    from pip.locations import (
  File "/usr/lib/python3/dist-packages/pip/locations.py", line 9, in <module>
    from distutils import sysconfig
ImportError: cannot import name 'sysconfig' from 'distutils' (/usr/lib/python3.7/distutils/__init__.py)

ベストアンサー1

pip3がある場合:pip3 install mesonすべてを処理します。

おすすめ記事