如何在 CentOS/oracle linux 中安装 python-pysocks?

How install python-pysocks in CentOS/oracle linux?

当我尝试使用命令 sudo yum update 进行更新时,出现错误:

Error: Package: python2-urllib3-1.22-2.el7.noarch (ol7_developer)
           Requires: python-pysocks

所以当我尝试安装 python2-urllib3-1.22-2.el7.noarch.rpm 时出现错误:

Error: Package: python2-urllib3-1.22-2.el7.noarch (/python2-urllib3-1.22-2.el7.noarch)
           Requires: python-pysocks

然后我尝试下载软件包 https://download-ib01.fedoraproject.org/pub/epel/7/SRPMS/Packages/p/python-pysocks-1.6.8-7.el7.src.rpm 但是当我尝试安装时:sudo yum install /home/<USER>/python-pysocks-1.6.8-7.el7.src.rpm 我收到错误:

Cannot add package /home/bigdata/python-pysocks-1.6.8-7.el7.src.rpm to transaction. Not a compatible architecture: src

我该如何纠正?我应该在哪里下载这个包?

python2-pysocks 在 yum.oracle.com 上的 EPEL 仓库中。

尝试:

sudo yum install oracle-epel-release-el7
sudo yum update