최근 우분투에서 데비안 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
모든 것을 처리합니다.
답변2
문제가 해결되었습니다. 어떤 이유로 데비안 9 저장소를 사용하여 소스 목록을 업데이트했습니다. 어떻게 이런 일이 일어났는지 모르겠습니다.