{"id":10021283,"date":"2026-02-27T23:27:45","date_gmt":"2026-02-27T15:27:45","guid":{"rendered":"https:\/\/itmax.cn\/?p=10021283"},"modified":"2026-02-27T23:27:45","modified_gmt":"2026-02-27T15:27:45","slug":"pyenv-%e6%80%8e%e4%b9%88%e5%9c%a8-linux-%e5%ae%89%e8%a3%85%e5%a4%9a%e4%b8%aa-python%ef%bc%9f%e7%b1%bb%e4%bc%bc-nvm-%e4%b8%80%e6%a0%b7","status":"publish","type":"post","link":"https:\/\/itmax.cn\/?p=10021283","title":{"rendered":"pyenv \u600e\u4e48\u5728 linux \u5b89\u88c5\u591a\u4e2a python\uff1f\u7c7b\u4f3c nvm \u4e00\u6837"},"content":{"rendered":"<p>pyenv \u600e\u4e48\u5728 linux \u5b89\u88c5\u591a\u4e2a python\uff1f\u7c7b\u4f3c nvm \u4e00\u6837\uff0c\u4f46\u662f\u4e0d\u9700\u8981\u628a\u5b89\u88c5\u7684 python \u8bbe\u7f6e\u4e3a\u5168\u5c40\u7684 python\uff0c\u56e0\u4e3a linux \u5185\u7f6e python \u5982\u679c\u6539\u53d8\u4e86\u9ed8\u8ba4\u7684 python \u53ef\u80fd\u4f1a\u5bfc\u81f4\u5404\u79cd\u51b2\u7a81\u548c\u5f02\u5e38<\/p>\n<p>\u6211\u53ea\u8981\u8fd9\u4e2a\u5de5\u5177\u53ef\u4ee5\u5e2e\u6211\u5b89\u88c5 python \u6307\u5b9a\u7248\u672c\u7684 python \u89e3\u6790\u5668\u5c31\u884c<\/p>\n<p>\u6bd4\u5982 ubuntu24.04 \u5185\u7f6e\u7684\u662f python3.12 \u4f46\u6211\u5f00\u53d1\u7684\u65f6\u5019\uff0c\u53ef\u80fd\u8981\u7528\u5230 python3.10\u30013.11\u30013.13\u30013.14 \u7b49\u7b49\u4e0d\u540c\u7684\u7248\u672c<\/p>\n<p>\u6211\u5728\u60f3\u5982\u679c pyenv \u4e0d\u80fd\u6ee1\u8db3\uff0c\u6211\u600e\u4e48\u81ea\u5df1\u5b9e\u73b0\u4e00\u4e2a\uff1f\u6211\u4e4b\u524d\u8981\u5b89\u88c5\u591a\u4e2a\u7248\u672c\uff0c\u90fd\u662f\u53bb python \u5b98\u65b9\u4e0b\u8f7d .tar \u5305\uff0c\u7136\u540e\u81ea\u5df1\u901a\u8fc7 apt \u5b89\u88c5\u4f9d\u8d56\u548c make \u5b89\u88c5\uff0c\u5982\u679c\u6539\u6210\u81ea\u7814\u5de5\u5177\uff0c\u600e\u4e48\u89e3\u51b3\u4f9d\u8d56\u548c\u7f16\u8bd1\u95ee\u9898\u5462\uff1f\u6211\u80af\u5b9a\u662f\u4e0d\u5e0c\u671b\u8fd8\u9700\u8981\u7f16\u8bd1\u518d\u5b89\u88c5\uff0c\u8fd9\u6837\u4f1a\u6d6a\u8d39\u65f6\u95f4\uff0c\u800c\u662f\u76f4\u63a5\u4e0b\u8f7d\u5373\u5b89\u88c5<\/p>\n<hr>\n<p>\u6700\u7ec8\u6211\u9009\u62e9\u4e86 pyenv\uff0c\u53ef\u4ee5\u76f4\u63a5\u6ee1\u8db3\u6211\u7684\u9700\u6c42\uff0c\u867d\u7136\u9700\u8981\u7f16\u8bd1<\/p>\n<p><a href=\"https:\/\/segmentfault.com\/a\/1190000047625493\">https:\/\/segmentfault.com\/a\/1190000047625493<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>pyenv \u600e\u4e48\u5728 linux \u5b89\u88c5\u591a\u4e2a python\uff1f\u7c7b\u4f3c nvm \u4e00\u6837\uff0c\u4f46\u662f\u4e0d\u9700\u8981\u628a\u5b89\u88c5\u7684 python  [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-10021283","post","type-post","status-publish","format-standard","hentry","category-share"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10021283","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10021283"}],"version-history":[{"count":0,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10021283\/revisions"}],"wp:attachment":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10021283"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10021283"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10021283"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}