{"id":444,"date":"2023-08-31T13:03:34","date_gmt":"2023-08-31T05:03:34","guid":{"rendered":"https:\/\/btc354.com\/?p=444"},"modified":"2023-08-31T13:15:29","modified_gmt":"2023-08-31T05:15:29","slug":"centos%e8%87%aa%e5%b8%a6python2yum%e7%9a%84%e5%8d%b8%e8%bd%bd%e5%8f%8a%e9%87%8d%e8%a3%85","status":"publish","type":"post","link":"https:\/\/btc354.com\/index.php\/2023\/08\/31\/centos%e8%87%aa%e5%b8%a6python2yum%e7%9a%84%e5%8d%b8%e8%bd%bd%e5%8f%8a%e9%87%8d%e8%a3%85\/","title":{"rendered":"Centos\u81ea\u5e26Python2&#038;yum\u7684\u5378\u8f7d\u53ca\u91cd\u88c5"},"content":{"rendered":"\n<pre class=\"wp-block-preformatted\">\u8d77\u56e0\uff1a\u5728\u5378\u8f7dpython2\u7684\u65f6\u5019\uff0c\u6ca1\u6709\u5378\u8f7d\u5e72\u51c0\u3002\u5bfc\u81f4python2\u80fd\u7528\uff0c\u4f46\u662fyum\u547d\u4ee4\u62a5\u9519\u3002<\/pre>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code>No module named yum<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"911\" height=\"486\" src=\"https:\/\/btc354.com\/wp-content\/uploads\/2023\/08\/15e01ab4adbd3113e63ca89f77890ea-1.png\" alt=\"\" class=\"wp-image-446\" srcset=\"https:\/\/btc354.com\/wp-content\/uploads\/2023\/08\/15e01ab4adbd3113e63ca89f77890ea-1.png 911w, https:\/\/btc354.com\/wp-content\/uploads\/2023\/08\/15e01ab4adbd3113e63ca89f77890ea-1-300x160.png 300w, https:\/\/btc354.com\/wp-content\/uploads\/2023\/08\/15e01ab4adbd3113e63ca89f77890ea-1-768x410.png 768w\" sizes=\"auto, (max-width: 911px) 100vw, 911px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted\">\u7f51\u4e0a\u641c\u7d22\u4e86\u4e00\u4e0b\uff0c\u51fa\u73b0\u8fd9\u79cd\u73b0\u8c61\u7b54\u6848\u51e0\u4e4e\u90fd\u662f\u8bf4\u662f\u56e0\u4e3a\u5347\u7ea7\u4e86python\u4ee5\u540e\uff0cyum\u4e0e\u9ad8\u7248\u672cpython\u4e0d\u517c\u5bb9\u5bfc\u81f4\uff0c\u89e3\u51b3\u65b9\u6cd5\u5c06\/usr\/bin\/yum\u6587\u4ef6\u7684\u9996\u884c\u7531#!\/usr\/bin\/python\u6539\u4e3a#!\/usr\/bin\/python2.7\uff08\u8bd5\u4e86\uff0c\u6ca1\u6709\u6548\u679c\uff09\uff0c\u6700\u7ec8\u7684\u89e3\u51b3\u65b9\u6cd5\u5c31\u662f\u5c06python2\u548cyum\u5168\u90e8\u5378\u8f7d\uff0c\u7136\u540e\u91cd\u65b0\u5b89\u88c5\u4e00\u904d\u3002<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4e00\u3001\u5378\u8f7dPython2\u53cayum<\/strong><\/h2>\n\n\n\n<p><strong>1.\u5378\u8f7dPython2<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code>rpm -qa|grep python|xargs rpm -ev --allmatches --nodeps  # \u5378\u8f7dPython\nwhereis python |xargs rm -frv  # \u5220\u9664python\u6240\u6709\u6b8b\u4f59\u6587\u4ef6\nwhereis python  # \u67e5\u770b\u662f\u5426\u5b58\u5728python\npython # \u8fdb\u5165python\u89e3\u91ca\u5668\u73af\u5883\uff0c\u82e5\u63d0\u793a\u201c-bash: python: command not found\u201d\u5219\u8bf4\u660e\u5378\u8f7d\u6210\u529f<\/code><\/pre>\n\n\n\n<p><strong>2.\u5378\u8f7dyum<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code>rpm -qa|grep yum|xargs rpm -ev --allmatches --nodeps  # \u5f3a\u5236\u5378\u8f7dyum\nwhereis yum |xargs rm -frv  # \u5220\u9664yum\u6b8b\u4f59\u6587\u4ef6<\/code><\/pre>\n\n\n\n<p><strong>\u4e8c\u3001\u5b89\u88c5python2.7\u53cayum<\/strong><\/p>\n\n\n\n<p><strong>1.\u67e5\u770b\u7cfb\u7edf\u7248\u672c<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code>cat \/etc\/redhat-release<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"827\" height=\"81\" src=\"https:\/\/btc354.com\/wp-content\/uploads\/2023\/08\/image-42.png\" alt=\"\" class=\"wp-image-457\" srcset=\"https:\/\/btc354.com\/wp-content\/uploads\/2023\/08\/image-42.png 827w, https:\/\/btc354.com\/wp-content\/uploads\/2023\/08\/image-42-300x29.png 300w, https:\/\/btc354.com\/wp-content\/uploads\/2023\/08\/image-42-768x75.png 768w\" sizes=\"auto, (max-width: 827px) 100vw, 827px\" \/><\/figure>\n\n\n\n<p><strong>2.\u4e0b\u8f7d\u7248\u672c\u5bf9\u5e94\u7684\u4f9d\u8d56\u5305<\/strong><\/p>\n\n\n\n<p>\u2460 \u521b\u5efa\u76ee\u5f55<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code>mkdir \/usr\/local\/src\/python\ncd \/usr\/local\/src\/python<\/code><\/pre>\n\n\n\n<p>\u2461 \u4e0b\u8f7d\u4f9d\u8d56\u5305<\/p>\n\n\n\n<p>\u4e0b\u8f7d\u5730\u5740\uff1a <a href=\"https:\/\/mirrors.163.com\/centos\/7\/os\/x86_64\/Packages\/\">https:\/\/mirrors.163.com\/centos\/7\/os\/x86_64\/Packages\/<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"871\" height=\"1024\" src=\"https:\/\/btc354.com\/wp-content\/uploads\/2023\/08\/image-37-871x1024.png\" alt=\"\" class=\"wp-image-447\" srcset=\"https:\/\/btc354.com\/wp-content\/uploads\/2023\/08\/image-37-871x1024.png 871w, https:\/\/btc354.com\/wp-content\/uploads\/2023\/08\/image-37-255x300.png 255w, https:\/\/btc354.com\/wp-content\/uploads\/2023\/08\/image-37-768x902.png 768w, https:\/\/btc354.com\/wp-content\/uploads\/2023\/08\/image-37-1024x1203.png 1024w, https:\/\/btc354.com\/wp-content\/uploads\/2023\/08\/image-37.png 1154w\" sizes=\"auto, (max-width: 871px) 100vw, 871px\" \/><\/figure>\n\n\n\n<p><strong>\u3010python\u4f9d\u8d56\u5305\u3011<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">libxml2-python-2.9.1-6.el7.5.x86_64.rpm\nlvm2-python-libs-2.02.187-6.el7.x86_64.rpm\npython-2.7.5-89.el7.x86_64.rpm\npython-backports-1.0-8.el7.x86_64.rpm\npython-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch.rpm\npython-chardet-2.2.1-3.el7.noarch.rpm\npython-devel-2.7.5-89.el7.x86_64.rpm\npython-iniparse-0.4-9.el7.noarch.rpm\npython-ipaddress-1.0.16-2.el7.noarch.rpm\npython-libs-2.7.5-89.el7.x86_64.rpm\npython-kitchen-1.1.1-5.el7.noarch.rpm\npython-pycurl-7.19.0-19.el7.x86_64.rpm\npython-setuptools-0.9.8-7.el7.noarch.rpm\npython-urlgrabber-3.10-10.el7.noarch.rpm\npython-virtualenv-15.1.0-4.el7_7.noarch.rpm\nrpm-python-4.11.3-45.el7.x86_64.rpm\nrpm-4.11.3-45.el7.x86_64.rpm\nrpm-build-4.11.3-45.el7.x86_64.rpm\nrpm-build-libs-4.11.3-45.el7.x86_64.rpm\nrpm-libs-4.11.3-45.el7.x86_64.rpm\nrpm-sign-4.11.3-45.el7.x86_64.rpm\npython-rpm-macros-3-34.el7.noarch.rpm<\/pre>\n\n\n\n<p><strong>\u3010yum\u4f9d\u8d56\u5305\u3011<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">yum-3.4.3-168.el7.centos.noarch.rpm\nyum-metadata-parser-1.1.4-10.el7.x86_64.rpm\nyum-plugin-aliases-1.1.31-54.el7_8.noarch.rpm\nyum-plugin-fastestmirror-1.1.31-54.el7_8.noarch.rpm\nyum-plugin-protectbase-1.1.31-54.el7_8.noarch.rpm\nyum-utils-1.1.31-54.el7_8.noarch.rpm<\/pre>\n\n\n\n<p><strong>3.\u5b89\u88c5python<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code>cd \/usr\/local\/src\/python\nrpm -ivh python-* rpm-python-* --nodeps --force  # \u5982\u51fa\u73b0\u5b89\u88c5\u4f9d\u8d56\u62a5\u9519\u95ee\u9898\uff0c\u53ef\u5e26\u4e0a--nodeps --force\u53c2\u6570\u7684\u610f\u601d\u662f\u4e0d\u8003\u8651\u4f9d\u8d56\u5305\uff0c\u5f3a\u5236\u5b89\u88c5<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"993\" height=\"117\" src=\"https:\/\/btc354.com\/wp-content\/uploads\/2023\/08\/image-39.png\" alt=\"\" class=\"wp-image-449\" srcset=\"https:\/\/btc354.com\/wp-content\/uploads\/2023\/08\/image-39.png 993w, https:\/\/btc354.com\/wp-content\/uploads\/2023\/08\/image-39-300x35.png 300w, https:\/\/btc354.com\/wp-content\/uploads\/2023\/08\/image-39-768x90.png 768w\" sizes=\"auto, (max-width: 993px) 100vw, 993px\" \/><\/figure>\n\n\n\n<p><strong>4.\u5b89\u88c5yum<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code>cd \/usr\/local\/src\/python\nrpm -ivh --force *.rpm --nodeps<\/code><\/pre>\n\n\n\n<p>\u9a8c\u8bc1yum\u662f\u5426\u5b89\u88c5\u6210\u529f\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"561\" src=\"https:\/\/btc354.com\/wp-content\/uploads\/2023\/08\/image-41-1024x561.png\" alt=\"\" class=\"wp-image-455\" srcset=\"https:\/\/btc354.com\/wp-content\/uploads\/2023\/08\/image-41-1024x561.png 1024w, https:\/\/btc354.com\/wp-content\/uploads\/2023\/08\/image-41-300x164.png 300w, https:\/\/btc354.com\/wp-content\/uploads\/2023\/08\/image-41-768x421.png 768w, https:\/\/btc354.com\/wp-content\/uploads\/2023\/08\/image-41.png 1396w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><strong>\u5c0f\u7ed3<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\u4ee5\u4e0a\u5c31\u662fPython2\u548cyum\u5378\u8f7d\u53ca\u91cd\u65b0\u5b89\u88c5\u7684\u5168\u8fc7\u7a0b\uff0c\u867d\u7136\u8bef\u5220\u9664Python\u53cayum\u4e0d\u4f1a\u5bfc\u81f4\u7cfb\u7edf\u6302\u6389\u8fd9\u4e48\u4e25\u91cd\u7684\u95ee\u9898\uff0c\u4f46\u4e5f\u4f1a\u589e\u52a0\u5f88\u591a\u4e0d\u5fc5\u8981\u7684\u9ebb\u70e6\uff0c\u5c24\u5176\u662f\u65f6\u95f4\u7684\u6d6a\u8d39\u3002\u6240\u4ee5\u5728\u6267\u884c\u4e00\u4e9b\u547d\u4ee4\uff0c\u5c24\u5176\u662f\u4e00\u4e9b\u5220\u9664\u3001\u5378\u8f7d\u547d\u4ee4\u65f6\uff0c\u4e00\u5b9a\u8981\u614e\u91cd\uff01<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5728CentOS\u7cfb\u7edf\u4e0a\u5378\u8f7d\u548c\u91cd\u65b0\u5b89\u88c5\u81ea\u5e26\u7684Python 2\u548cyum\u8f6f\u4ef6\u5305\u7ba1\u7406\u5668\u7684\u65b9\u6cd5\u3002\u5f53\u9047\u5230\u4f9d\u8d56\u95ee\u9898\u6216\u7cfb\u7edf\u7a33\u5b9a\u6027\u65b9\u9762\u7684\u6311\u6218\u65f6\uff0c\u6267\u884c\u8fd9\u4e9b\u6b65\u9aa4\u662f\u975e\u5e38\u91cd\u8981\u7684\u3002\u9996\u5148\uff0c\u6211\u4eec\u5c06\u6307\u5bfc\u60a8\u5982\u4f55\u6b63\u786e\u5378\u8f7dPython 2\u548cyum\uff0c\u786e\u4fdd\u7cfb\u7edf\u6062\u590d\u5230\u9ed8\u8ba4\u72b6\u6001\u3002\u7136\u540e\uff0c\u6211\u4eec\u5c06\u4ecb\u7ecd\u5982\u4f55\u91cd\u65b0\u5b89\u88c5\u5b83\u4eec\uff0c\u4ee5\u6ee1\u8db3\u7279\u5b9a\u9700\u6c42\u5e76\u786e\u4fdd\u7cfb\u7edf\u7684\u6b63\u5e38\u8fd0\u884c\u3002\u6211\u4eec\u5c06\u63d0\u4f9b\u8be6\u7ec6\u7684\u6b65\u9aa4\u548c\u547d\u4ee4\uff0c\u4ee5\u5e2e\u52a9\u60a8\u987a\u5229\u5b8c\u6210\u6574\u4e2a\u8fc7\u7a0b\u3002\u901a\u8fc7\u6b63\u786e\u5378\u8f7d\u548c\u91cd\u65b0\u5b89\u88c5CentOS\u81ea\u5e26\u7684Python 2\u548cyum\uff0c\u60a8\u53ef\u4ee5\u89e3\u51b3\u4f9d\u8d56\u5173\u7cfb\u95ee\u9898\uff0c\u786e\u4fdd\u8f6f\u4ef6\u5305\u7ba1\u7406\u5668\u7684\u6b63\u5e38\u529f\u80fd\uff0c\u5e76\u4e3a\u7cfb\u7edf\u63d0\u4f9b\u7a33\u5b9a\u7684\u57fa\u7840\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[36,39],"tags":[35,37,41],"class_list":["post-444","post","type-post","status-publish","format-standard","hentry","category-python","category-yum","tag-centos","tag-python","tag-yum"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Centos\u81ea\u5e26Python2&amp;yum\u7684\u5378\u8f7d\u53ca\u91cd\u88c5 - \u4e2a\u4eba\u5b66\u4e60\u7ad9\u70b9<\/title>\n<meta name=\"description\" content=\"\u672c\u6587\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u5728CentOS\u7cfb\u7edf\u4e0a\u5378\u8f7d\u548c\u91cd\u65b0\u5b89\u88c5\u81ea\u5e26\u7684Python 2\u548cyum\u8f6f\u4ef6\u5305\u7ba1\u7406\u5668\u7684\u65b9\u6cd5\uff0c\u4ee5\u89e3\u51b3\u4f9d\u8d56\u95ee\u9898\u548c\u786e\u4fdd\u7cfb\u7edf\u7a33\u5b9a\u6027\u3002\u4e86\u89e3\u5982\u4f55\u6b63\u786e\u6267\u884c\u8fd9\u4e9b\u6b65\u9aa4\uff0c\u4ee5\u4fbf\u6709\u6548\u5730\u5378\u8f7d\u548c\u91cd\u65b0\u5b89\u88c5\u8fd9\u4e9b\u5173\u952e\u7684\u8f6f\u4ef6\u5de5\u5177\uff0c\u4ee5\u6ee1\u8db3\u7279\u5b9a\u9700\u6c42\u5e76\u4fdd\u6301\u7cfb\u7edf\u7684\u6b63\u5e38\u8fd0\u884c\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/btc354.com\/index.php\/2023\/08\/31\/centos\u81ea\u5e26python2yum\u7684\u5378\u8f7d\u53ca\u91cd\u88c5\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Centos\u81ea\u5e26Python2&amp;yum\u7684\u5378\u8f7d\u53ca\u91cd\u88c5 - \u4e2a\u4eba\u5b66\u4e60\u7ad9\u70b9\" \/>\n<meta property=\"og:description\" content=\"\u672c\u6587\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u5728CentOS\u7cfb\u7edf\u4e0a\u5378\u8f7d\u548c\u91cd\u65b0\u5b89\u88c5\u81ea\u5e26\u7684Python 2\u548cyum\u8f6f\u4ef6\u5305\u7ba1\u7406\u5668\u7684\u65b9\u6cd5\uff0c\u4ee5\u89e3\u51b3\u4f9d\u8d56\u95ee\u9898\u548c\u786e\u4fdd\u7cfb\u7edf\u7a33\u5b9a\u6027\u3002\u4e86\u89e3\u5982\u4f55\u6b63\u786e\u6267\u884c\u8fd9\u4e9b\u6b65\u9aa4\uff0c\u4ee5\u4fbf\u6709\u6548\u5730\u5378\u8f7d\u548c\u91cd\u65b0\u5b89\u88c5\u8fd9\u4e9b\u5173\u952e\u7684\u8f6f\u4ef6\u5de5\u5177\uff0c\u4ee5\u6ee1\u8db3\u7279\u5b9a\u9700\u6c42\u5e76\u4fdd\u6301\u7cfb\u7edf\u7684\u6b63\u5e38\u8fd0\u884c\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/btc354.com\/index.php\/2023\/08\/31\/centos\u81ea\u5e26python2yum\u7684\u5378\u8f7d\u53ca\u91cd\u88c5\/\" \/>\n<meta property=\"og:site_name\" content=\"\u4e2a\u4eba\u5b66\u4e60\u7ad9\u70b9\" \/>\n<meta property=\"article:published_time\" content=\"2023-08-31T05:03:34+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-08-31T05:15:29+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/btc354.com\/wp-content\/uploads\/2023\/08\/15e01ab4adbd3113e63ca89f77890ea-1.png\" \/>\n<meta name=\"author\" content=\"tan, keito\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@tqd354\" \/>\n<meta name=\"twitter:site\" content=\"@tqd354\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"tan, keito\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/btc354.com\\\/index.php\\\/2023\\\/08\\\/31\\\/centos%e8%87%aa%e5%b8%a6python2yum%e7%9a%84%e5%8d%b8%e8%bd%bd%e5%8f%8a%e9%87%8d%e8%a3%85\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/btc354.com\\\/index.php\\\/2023\\\/08\\\/31\\\/centos%e8%87%aa%e5%b8%a6python2yum%e7%9a%84%e5%8d%b8%e8%bd%bd%e5%8f%8a%e9%87%8d%e8%a3%85\\\/\"},\"author\":{\"name\":\"tan, keito\",\"@id\":\"https:\\\/\\\/btc354.com\\\/#\\\/schema\\\/person\\\/00e13932981b0e8ae19d3ae6b5734178\"},\"headline\":\"Centos\u81ea\u5e26Python2&#038;yum\u7684\u5378\u8f7d\u53ca\u91cd\u88c5\",\"datePublished\":\"2023-08-31T05:03:34+00:00\",\"dateModified\":\"2023-08-31T05:15:29+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/btc354.com\\\/index.php\\\/2023\\\/08\\\/31\\\/centos%e8%87%aa%e5%b8%a6python2yum%e7%9a%84%e5%8d%b8%e8%bd%bd%e5%8f%8a%e9%87%8d%e8%a3%85\\\/\"},\"wordCount\":21,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/btc354.com\\\/#\\\/schema\\\/person\\\/00e13932981b0e8ae19d3ae6b5734178\"},\"image\":{\"@id\":\"https:\\\/\\\/btc354.com\\\/index.php\\\/2023\\\/08\\\/31\\\/centos%e8%87%aa%e5%b8%a6python2yum%e7%9a%84%e5%8d%b8%e8%bd%bd%e5%8f%8a%e9%87%8d%e8%a3%85\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/btc354.com\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/15e01ab4adbd3113e63ca89f77890ea-1.png\",\"keywords\":[\"centos\",\"python\",\"yum\"],\"articleSection\":[\"python\",\"yum\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/btc354.com\\\/index.php\\\/2023\\\/08\\\/31\\\/centos%e8%87%aa%e5%b8%a6python2yum%e7%9a%84%e5%8d%b8%e8%bd%bd%e5%8f%8a%e9%87%8d%e8%a3%85\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/btc354.com\\\/index.php\\\/2023\\\/08\\\/31\\\/centos%e8%87%aa%e5%b8%a6python2yum%e7%9a%84%e5%8d%b8%e8%bd%bd%e5%8f%8a%e9%87%8d%e8%a3%85\\\/\",\"url\":\"https:\\\/\\\/btc354.com\\\/index.php\\\/2023\\\/08\\\/31\\\/centos%e8%87%aa%e5%b8%a6python2yum%e7%9a%84%e5%8d%b8%e8%bd%bd%e5%8f%8a%e9%87%8d%e8%a3%85\\\/\",\"name\":\"Centos\u81ea\u5e26Python2&yum\u7684\u5378\u8f7d\u53ca\u91cd\u88c5 - \u4e2a\u4eba\u5b66\u4e60\u7ad9\u70b9\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/btc354.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/btc354.com\\\/index.php\\\/2023\\\/08\\\/31\\\/centos%e8%87%aa%e5%b8%a6python2yum%e7%9a%84%e5%8d%b8%e8%bd%bd%e5%8f%8a%e9%87%8d%e8%a3%85\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/btc354.com\\\/index.php\\\/2023\\\/08\\\/31\\\/centos%e8%87%aa%e5%b8%a6python2yum%e7%9a%84%e5%8d%b8%e8%bd%bd%e5%8f%8a%e9%87%8d%e8%a3%85\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/btc354.com\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/15e01ab4adbd3113e63ca89f77890ea-1.png\",\"datePublished\":\"2023-08-31T05:03:34+00:00\",\"dateModified\":\"2023-08-31T05:15:29+00:00\",\"description\":\"\u672c\u6587\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u5728CentOS\u7cfb\u7edf\u4e0a\u5378\u8f7d\u548c\u91cd\u65b0\u5b89\u88c5\u81ea\u5e26\u7684Python 2\u548cyum\u8f6f\u4ef6\u5305\u7ba1\u7406\u5668\u7684\u65b9\u6cd5\uff0c\u4ee5\u89e3\u51b3\u4f9d\u8d56\u95ee\u9898\u548c\u786e\u4fdd\u7cfb\u7edf\u7a33\u5b9a\u6027\u3002\u4e86\u89e3\u5982\u4f55\u6b63\u786e\u6267\u884c\u8fd9\u4e9b\u6b65\u9aa4\uff0c\u4ee5\u4fbf\u6709\u6548\u5730\u5378\u8f7d\u548c\u91cd\u65b0\u5b89\u88c5\u8fd9\u4e9b\u5173\u952e\u7684\u8f6f\u4ef6\u5de5\u5177\uff0c\u4ee5\u6ee1\u8db3\u7279\u5b9a\u9700\u6c42\u5e76\u4fdd\u6301\u7cfb\u7edf\u7684\u6b63\u5e38\u8fd0\u884c\u3002\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/btc354.com\\\/index.php\\\/2023\\\/08\\\/31\\\/centos%e8%87%aa%e5%b8%a6python2yum%e7%9a%84%e5%8d%b8%e8%bd%bd%e5%8f%8a%e9%87%8d%e8%a3%85\\\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/btc354.com\\\/index.php\\\/2023\\\/08\\\/31\\\/centos%e8%87%aa%e5%b8%a6python2yum%e7%9a%84%e5%8d%b8%e8%bd%bd%e5%8f%8a%e9%87%8d%e8%a3%85\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\\\/\\\/btc354.com\\\/index.php\\\/2023\\\/08\\\/31\\\/centos%e8%87%aa%e5%b8%a6python2yum%e7%9a%84%e5%8d%b8%e8%bd%bd%e5%8f%8a%e9%87%8d%e8%a3%85\\\/#primaryimage\",\"url\":\"https:\\\/\\\/btc354.com\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/15e01ab4adbd3113e63ca89f77890ea-1.png\",\"contentUrl\":\"https:\\\/\\\/btc354.com\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/15e01ab4adbd3113e63ca89f77890ea-1.png\",\"width\":911,\"height\":486},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/btc354.com\\\/index.php\\\/2023\\\/08\\\/31\\\/centos%e8%87%aa%e5%b8%a6python2yum%e7%9a%84%e5%8d%b8%e8%bd%bd%e5%8f%8a%e9%87%8d%e8%a3%85\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\\\/\\\/btc354.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Centos\u81ea\u5e26Python2&#038;yum\u7684\u5378\u8f7d\u53ca\u91cd\u88c5\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/btc354.com\\\/#website\",\"url\":\"https:\\\/\\\/btc354.com\\\/\",\"name\":\"\u4e2a\u4eba\u5b66\u4e60\u7ad9\u70b9\",\"description\":\"tiro354\",\"publisher\":{\"@id\":\"https:\\\/\\\/btc354.com\\\/#\\\/schema\\\/person\\\/00e13932981b0e8ae19d3ae6b5734178\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/btc354.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-Hans\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/btc354.com\\\/#\\\/schema\\\/person\\\/00e13932981b0e8ae19d3ae6b5734178\",\"name\":\"tan, keito\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\\\/\\\/btc354.com\\\/wp-content\\\/uploads\\\/2025\\\/01\\\/cropped-tiro354_logo7-1.png\",\"url\":\"https:\\\/\\\/btc354.com\\\/wp-content\\\/uploads\\\/2025\\\/01\\\/cropped-tiro354_logo7-1.png\",\"contentUrl\":\"https:\\\/\\\/btc354.com\\\/wp-content\\\/uploads\\\/2025\\\/01\\\/cropped-tiro354_logo7-1.png\",\"width\":1023,\"height\":1023,\"caption\":\"tan, keito\"},\"logo\":{\"@id\":\"https:\\\/\\\/btc354.com\\\/wp-content\\\/uploads\\\/2025\\\/01\\\/cropped-tiro354_logo7-1.png\"},\"sameAs\":[\"https:\\\/\\\/x.com\\\/tqd354\"],\"url\":\"https:\\\/\\\/btc354.com\\\/index.php\\\/author\\\/tanqidong\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Centos\u81ea\u5e26Python2&yum\u7684\u5378\u8f7d\u53ca\u91cd\u88c5 - \u4e2a\u4eba\u5b66\u4e60\u7ad9\u70b9","description":"\u672c\u6587\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u5728CentOS\u7cfb\u7edf\u4e0a\u5378\u8f7d\u548c\u91cd\u65b0\u5b89\u88c5\u81ea\u5e26\u7684Python 2\u548cyum\u8f6f\u4ef6\u5305\u7ba1\u7406\u5668\u7684\u65b9\u6cd5\uff0c\u4ee5\u89e3\u51b3\u4f9d\u8d56\u95ee\u9898\u548c\u786e\u4fdd\u7cfb\u7edf\u7a33\u5b9a\u6027\u3002\u4e86\u89e3\u5982\u4f55\u6b63\u786e\u6267\u884c\u8fd9\u4e9b\u6b65\u9aa4\uff0c\u4ee5\u4fbf\u6709\u6548\u5730\u5378\u8f7d\u548c\u91cd\u65b0\u5b89\u88c5\u8fd9\u4e9b\u5173\u952e\u7684\u8f6f\u4ef6\u5de5\u5177\uff0c\u4ee5\u6ee1\u8db3\u7279\u5b9a\u9700\u6c42\u5e76\u4fdd\u6301\u7cfb\u7edf\u7684\u6b63\u5e38\u8fd0\u884c\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/btc354.com\/index.php\/2023\/08\/31\/centos\u81ea\u5e26python2yum\u7684\u5378\u8f7d\u53ca\u91cd\u88c5\/","og_locale":"zh_CN","og_type":"article","og_title":"Centos\u81ea\u5e26Python2&yum\u7684\u5378\u8f7d\u53ca\u91cd\u88c5 - \u4e2a\u4eba\u5b66\u4e60\u7ad9\u70b9","og_description":"\u672c\u6587\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u5728CentOS\u7cfb\u7edf\u4e0a\u5378\u8f7d\u548c\u91cd\u65b0\u5b89\u88c5\u81ea\u5e26\u7684Python 2\u548cyum\u8f6f\u4ef6\u5305\u7ba1\u7406\u5668\u7684\u65b9\u6cd5\uff0c\u4ee5\u89e3\u51b3\u4f9d\u8d56\u95ee\u9898\u548c\u786e\u4fdd\u7cfb\u7edf\u7a33\u5b9a\u6027\u3002\u4e86\u89e3\u5982\u4f55\u6b63\u786e\u6267\u884c\u8fd9\u4e9b\u6b65\u9aa4\uff0c\u4ee5\u4fbf\u6709\u6548\u5730\u5378\u8f7d\u548c\u91cd\u65b0\u5b89\u88c5\u8fd9\u4e9b\u5173\u952e\u7684\u8f6f\u4ef6\u5de5\u5177\uff0c\u4ee5\u6ee1\u8db3\u7279\u5b9a\u9700\u6c42\u5e76\u4fdd\u6301\u7cfb\u7edf\u7684\u6b63\u5e38\u8fd0\u884c\u3002","og_url":"https:\/\/btc354.com\/index.php\/2023\/08\/31\/centos\u81ea\u5e26python2yum\u7684\u5378\u8f7d\u53ca\u91cd\u88c5\/","og_site_name":"\u4e2a\u4eba\u5b66\u4e60\u7ad9\u70b9","article_published_time":"2023-08-31T05:03:34+00:00","article_modified_time":"2023-08-31T05:15:29+00:00","og_image":[{"url":"https:\/\/btc354.com\/wp-content\/uploads\/2023\/08\/15e01ab4adbd3113e63ca89f77890ea-1.png","type":"","width":"","height":""}],"author":"tan, keito","twitter_card":"summary_large_image","twitter_creator":"@tqd354","twitter_site":"@tqd354","twitter_misc":{"\u4f5c\u8005":"tan, keito","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/btc354.com\/index.php\/2023\/08\/31\/centos%e8%87%aa%e5%b8%a6python2yum%e7%9a%84%e5%8d%b8%e8%bd%bd%e5%8f%8a%e9%87%8d%e8%a3%85\/#article","isPartOf":{"@id":"https:\/\/btc354.com\/index.php\/2023\/08\/31\/centos%e8%87%aa%e5%b8%a6python2yum%e7%9a%84%e5%8d%b8%e8%bd%bd%e5%8f%8a%e9%87%8d%e8%a3%85\/"},"author":{"name":"tan, keito","@id":"https:\/\/btc354.com\/#\/schema\/person\/00e13932981b0e8ae19d3ae6b5734178"},"headline":"Centos\u81ea\u5e26Python2&#038;yum\u7684\u5378\u8f7d\u53ca\u91cd\u88c5","datePublished":"2023-08-31T05:03:34+00:00","dateModified":"2023-08-31T05:15:29+00:00","mainEntityOfPage":{"@id":"https:\/\/btc354.com\/index.php\/2023\/08\/31\/centos%e8%87%aa%e5%b8%a6python2yum%e7%9a%84%e5%8d%b8%e8%bd%bd%e5%8f%8a%e9%87%8d%e8%a3%85\/"},"wordCount":21,"commentCount":0,"publisher":{"@id":"https:\/\/btc354.com\/#\/schema\/person\/00e13932981b0e8ae19d3ae6b5734178"},"image":{"@id":"https:\/\/btc354.com\/index.php\/2023\/08\/31\/centos%e8%87%aa%e5%b8%a6python2yum%e7%9a%84%e5%8d%b8%e8%bd%bd%e5%8f%8a%e9%87%8d%e8%a3%85\/#primaryimage"},"thumbnailUrl":"https:\/\/btc354.com\/wp-content\/uploads\/2023\/08\/15e01ab4adbd3113e63ca89f77890ea-1.png","keywords":["centos","python","yum"],"articleSection":["python","yum"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/btc354.com\/index.php\/2023\/08\/31\/centos%e8%87%aa%e5%b8%a6python2yum%e7%9a%84%e5%8d%b8%e8%bd%bd%e5%8f%8a%e9%87%8d%e8%a3%85\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/btc354.com\/index.php\/2023\/08\/31\/centos%e8%87%aa%e5%b8%a6python2yum%e7%9a%84%e5%8d%b8%e8%bd%bd%e5%8f%8a%e9%87%8d%e8%a3%85\/","url":"https:\/\/btc354.com\/index.php\/2023\/08\/31\/centos%e8%87%aa%e5%b8%a6python2yum%e7%9a%84%e5%8d%b8%e8%bd%bd%e5%8f%8a%e9%87%8d%e8%a3%85\/","name":"Centos\u81ea\u5e26Python2&yum\u7684\u5378\u8f7d\u53ca\u91cd\u88c5 - \u4e2a\u4eba\u5b66\u4e60\u7ad9\u70b9","isPartOf":{"@id":"https:\/\/btc354.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/btc354.com\/index.php\/2023\/08\/31\/centos%e8%87%aa%e5%b8%a6python2yum%e7%9a%84%e5%8d%b8%e8%bd%bd%e5%8f%8a%e9%87%8d%e8%a3%85\/#primaryimage"},"image":{"@id":"https:\/\/btc354.com\/index.php\/2023\/08\/31\/centos%e8%87%aa%e5%b8%a6python2yum%e7%9a%84%e5%8d%b8%e8%bd%bd%e5%8f%8a%e9%87%8d%e8%a3%85\/#primaryimage"},"thumbnailUrl":"https:\/\/btc354.com\/wp-content\/uploads\/2023\/08\/15e01ab4adbd3113e63ca89f77890ea-1.png","datePublished":"2023-08-31T05:03:34+00:00","dateModified":"2023-08-31T05:15:29+00:00","description":"\u672c\u6587\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u5728CentOS\u7cfb\u7edf\u4e0a\u5378\u8f7d\u548c\u91cd\u65b0\u5b89\u88c5\u81ea\u5e26\u7684Python 2\u548cyum\u8f6f\u4ef6\u5305\u7ba1\u7406\u5668\u7684\u65b9\u6cd5\uff0c\u4ee5\u89e3\u51b3\u4f9d\u8d56\u95ee\u9898\u548c\u786e\u4fdd\u7cfb\u7edf\u7a33\u5b9a\u6027\u3002\u4e86\u89e3\u5982\u4f55\u6b63\u786e\u6267\u884c\u8fd9\u4e9b\u6b65\u9aa4\uff0c\u4ee5\u4fbf\u6709\u6548\u5730\u5378\u8f7d\u548c\u91cd\u65b0\u5b89\u88c5\u8fd9\u4e9b\u5173\u952e\u7684\u8f6f\u4ef6\u5de5\u5177\uff0c\u4ee5\u6ee1\u8db3\u7279\u5b9a\u9700\u6c42\u5e76\u4fdd\u6301\u7cfb\u7edf\u7684\u6b63\u5e38\u8fd0\u884c\u3002","breadcrumb":{"@id":"https:\/\/btc354.com\/index.php\/2023\/08\/31\/centos%e8%87%aa%e5%b8%a6python2yum%e7%9a%84%e5%8d%b8%e8%bd%bd%e5%8f%8a%e9%87%8d%e8%a3%85\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/btc354.com\/index.php\/2023\/08\/31\/centos%e8%87%aa%e5%b8%a6python2yum%e7%9a%84%e5%8d%b8%e8%bd%bd%e5%8f%8a%e9%87%8d%e8%a3%85\/"]}]},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/btc354.com\/index.php\/2023\/08\/31\/centos%e8%87%aa%e5%b8%a6python2yum%e7%9a%84%e5%8d%b8%e8%bd%bd%e5%8f%8a%e9%87%8d%e8%a3%85\/#primaryimage","url":"https:\/\/btc354.com\/wp-content\/uploads\/2023\/08\/15e01ab4adbd3113e63ca89f77890ea-1.png","contentUrl":"https:\/\/btc354.com\/wp-content\/uploads\/2023\/08\/15e01ab4adbd3113e63ca89f77890ea-1.png","width":911,"height":486},{"@type":"BreadcrumbList","@id":"https:\/\/btc354.com\/index.php\/2023\/08\/31\/centos%e8%87%aa%e5%b8%a6python2yum%e7%9a%84%e5%8d%b8%e8%bd%bd%e5%8f%8a%e9%87%8d%e8%a3%85\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/btc354.com\/"},{"@type":"ListItem","position":2,"name":"Centos\u81ea\u5e26Python2&#038;yum\u7684\u5378\u8f7d\u53ca\u91cd\u88c5"}]},{"@type":"WebSite","@id":"https:\/\/btc354.com\/#website","url":"https:\/\/btc354.com\/","name":"\u4e2a\u4eba\u5b66\u4e60\u7ad9\u70b9","description":"tiro354","publisher":{"@id":"https:\/\/btc354.com\/#\/schema\/person\/00e13932981b0e8ae19d3ae6b5734178"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/btc354.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-Hans"},{"@type":["Person","Organization"],"@id":"https:\/\/btc354.com\/#\/schema\/person\/00e13932981b0e8ae19d3ae6b5734178","name":"tan, keito","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/btc354.com\/wp-content\/uploads\/2025\/01\/cropped-tiro354_logo7-1.png","url":"https:\/\/btc354.com\/wp-content\/uploads\/2025\/01\/cropped-tiro354_logo7-1.png","contentUrl":"https:\/\/btc354.com\/wp-content\/uploads\/2025\/01\/cropped-tiro354_logo7-1.png","width":1023,"height":1023,"caption":"tan, keito"},"logo":{"@id":"https:\/\/btc354.com\/wp-content\/uploads\/2025\/01\/cropped-tiro354_logo7-1.png"},"sameAs":["https:\/\/x.com\/tqd354"],"url":"https:\/\/btc354.com\/index.php\/author\/tanqidong\/"}]}},"_links":{"self":[{"href":"https:\/\/btc354.com\/index.php\/wp-json\/wp\/v2\/posts\/444","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/btc354.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/btc354.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/btc354.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/btc354.com\/index.php\/wp-json\/wp\/v2\/comments?post=444"}],"version-history":[{"count":5,"href":"https:\/\/btc354.com\/index.php\/wp-json\/wp\/v2\/posts\/444\/revisions"}],"predecessor-version":[{"id":458,"href":"https:\/\/btc354.com\/index.php\/wp-json\/wp\/v2\/posts\/444\/revisions\/458"}],"wp:attachment":[{"href":"https:\/\/btc354.com\/index.php\/wp-json\/wp\/v2\/media?parent=444"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/btc354.com\/index.php\/wp-json\/wp\/v2\/categories?post=444"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/btc354.com\/index.php\/wp-json\/wp\/v2\/tags?post=444"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}