Python - files from install of “gcc python3-devel” conflicts with files from “python37”

耗尽温柔 提交于 2020-01-24 00:28:11

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!