问题
The project has a python script which imports psutil=5.6.7. On project build, I get this error-
file /usr/lib64/pkgconfig/**python3.pc** from install of python3-devel-3.6.8-10.el7.x86_64 conflicts with file from package python37-libs-3.7.1-1.el7.x86_64
file /usr/bin/**python3-config** from install of python3-devel-3.6.8-10.el7.x86_64 conflicts with file from package python37-3.7.1-1.el7.x86_64
DockerFile content -
yum -y install gcc python3-devel
yum -y install python37
python3.7 -m ensurepip
I referred to https://community.centminmod.com/threads/python-conflict-on-update.17144/ which had a similar issue, but to no vain.
Which python3.pc file should be kept and how to exclude it from the other package?
来源:https://stackoverflow.com/questions/59690492/python-files-from-install-of-gcc-python3-devel-conflicts-with-files-from-py