我是新来负责系统管理任务的,拥有一个拥有几十个用户的Rocky Linux 8 (Rocky Linux8.6)服务器。我希望所有用户都能够在此服务器上的numpy和matplotlib中使用Python3。
我最近学到了(当pip install作为根时发出的警告.)我不应该使用pip作为根用户,所以我使用yum作为root用户安装了numpy:yum install python3-numpy --这很好。
但是,当我尝试(作为根用户):yum install python3-matplotlib时,我得到以下内容:
Error:
Problem: conflicting requests
- nothing provides libqhull.so.7()(64bit) needed by python3-matplotlib-3.0.3-4.el8.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)如何在我的系统上安装libqhull?或者-我是否需要为所有用户做一些不同的事情来访问Python3中的numpy和matplotlib?
发布于 2022-07-11 20:17:02
我似乎已经解决了这个问题,但天哪,我不确定这是否是最好的方法,甚至是一个好方法,但我似乎已经解决了我的问题。
我有另一台Rocky Linux8.6服务器已经安装了matplotlib。在另一台服务器上,yum list installed显示:
libqhull.x86_64 2015.2-5.el8 @powertools,
看到存储库powertools拥有它。
因此,在最初的问题中提到的Rocky Linux 8.6服务器上,我做到了:
yum install --enablerepo "powertools" python3-matplotlib
它安装了matplotlib,并可供所有用户使用。立即解决问题!
https://stackoverflow.com/questions/72943799
复制相似问题