微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

remi-safe 和 mariadb repo 之间的 RPM 包冲突

如何解决remi-safe 和 mariadb repo 之间的 RPM 包冲突

我正在运行带有额外存储库 remi-safe 和 mariaDB-10.5 的 Centos 7。 几个月来一切正常,现在我在运行 yum update 时遇到包冲突:

import scipy.odr as odr  # orthogonal distance regression
import scipy
import seaborn as sns
from scipy.stats import linregress
import matplotlib.pyplot as plt
import pandas as pd

def linear_fit(coefs,x):
    '''Linear function y = m*x + b'''
    m,b = coefs
    return m*x + b

def perform_odr(x,y):
    OLS_m,OLS_b = linregress(x,y)[:2]  # estimate coefficients from OLS
    linmod = scipy.odr.Model(linear_fit)
    mydata = scipy.odr.Data(x,y)
    myodr = scipy.odr.ODR(mydata,linmod,beta0=[OLS_m,OLS_b]) #,maxit=75,sstol=0.000000001)
    return myodr.run()

def plot_odr(x,y,ax=None):
    """Plot Orthogonal distance Regression line of best fit."""
    if ax is None:
        fig,ax = plt.subplots()

    fitted = perform_odr(x,y)
    
    fitted.pprint()
    print('y = %sx + %s' % tuple(round(coef,5) for coef in fitted.beta))

    # extend line to boundaries of figure by adding points corresponding to xmin/xmax
    xlims = plt.xlim()
    ylims = plt.ylim()
    xnew = pd.Series(xlims[0]).append(x)
    xnew = xnew.append(pd.Series(xlims[1]))

    # plot
    plt.plot(xnew,linear_fit(fitted.beta,xnew),'k-',linewidth=1.5,label='ODR regression',zorder=1)
    plt.xlim(xlims)
    plt.ylim(ylims)
    
    return ax,fitted



x = [25.88,33.77,26.55,36.17,36.57,32.43,38.65,37.2,33.57,32.06,25.48,33.12,26.24,38.0,37.25,23.4,34.28,30.8,34.22,36.76,30.46,33.61,35.32,24.99,39.23,29.22,32.54,29.28,31.31,33.46,28.06,39.59,28.98,28.12,27.21,36.54,25.35]

y = [0.05959377810359001,0.06366157531738281,0.03445526957511902,0.021249201148748398,0.013540455140173435,0.033232174813747406,0.02101573720574379,0.021147532388567924,0.014944841153919697,0.02261320687830448,0.04238538816571236,0.02475816197693348,0.04893920198082924,0.01641816273331642,0.02175772748887539,0.029113013297319412,0.019221415743231773,0.019603392109274864,0.01673588529229164,0.020033005625009537,0.02505655400454998,0.03193040192127228,0.02318655699491501,0.032157305628061295,0.017262479290366173,0.02122090384364128,0.04239807650446892,0.028340162709355354,0.02409830316901207,0.029440563172101974,0.026672156527638435,0.010255633853375912,0.02117013931274414,0.027912333607673645,0.020978346467018127,0.015505819581449032,0.02792999893426895]

fig,ax = plt.subplots()
plt.scatter(x,y)
ax,fit = plot_odr(x,ax)

我试图通过为 yum 存储库设置优先级来解决这个问题(我给了 1 个给 MariaDB,2 个给了 Remi,3 个给了 Centos Base 软件包,4 个给了 EPEL),但这并没有解决问题。

我怎样才能让 remi-safe 和 mariadb-10.5 重新在系统上存活而不发生争吵?

解决方法

EPEL 有 zstd 1.5.0,所以你必须使用这个

因此应该禁用优先级插件或正确配置它,base 和 EPEL 存储库的优先级更高,更高的优先级意味着更低的值。

请注意,官方 CentOS SCLo 存储库中提供了 mariadb 10.5,它可能更好地集成到系统中。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其他元素将获得点击?
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。)
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbcDriver发生异常。为什么?
这是用Java进行XML解析的最佳库。
Java的PriorityQueue的内置迭代器不会以任何特定顺序遍历数据结构。为什么?
如何在Java中聆听按键时移动图像。
Java“Program to an interface”。这是什么意思?