{"id":3912,"date":"2023-12-11T00:05:03","date_gmt":"2023-12-11T08:35:03","guid":{"rendered":"https:\/\/10ccc.cc\/?p=3912"},"modified":"2026-01-02T19:46:06","modified_gmt":"2026-01-02T11:46:06","slug":"pip%e5%ae%89%e8%a3%85%e5%8c%85%e6%97%b6%e6%8a%a5%e9%94%99-error-could-not-build-wheels-for-basicsr-which-is-required-to-install-pyproject-toml-based-projects-%e7%9a%84%e8%a7%a3%e5%86%b3%e6%96%b9","status":"publish","type":"post","link":"https:\/\/10ccc.cc\/?p=3912","title":{"rendered":"pip\u5b89\u88c5\u5305\u65f6\u62a5\u9519 ERROR Could not build wheels for basicsr, which is required to install pyproject toml-based projects \u7684\u89e3\u51b3\u65b9\u6cd5"},"content":{"rendered":"<p>\u6700\u8fd1\u8c03\u7814AI\u9879\u76ee\u7684\u6bd4\u8f83\u9891\u7e41\uff0c\u53d1\u73b0\u5f88\u591a\u9879\u76ee\u90fd\u4f1a\u7528\u5230 basicsr \u8fd9\u4e2a\u5e93\uff0c\u4f46\u5982\u679c\u76f4\u63a5\u5b89\u88c5\uff0c\u4f1a\u62a5\u62a5\u9519ERROR\uff1aCould not build wheels for basicsr, which is required to install pyproject toml-based projects<\/p>\n<p>\u6b64\u65f6\u53ea\u9700\u8981\u4fee\u6539pip\u5b89\u88c5\u65f6\u52a0\u4e0a\u53c2\u6570\u00a0 <strong>--use-pep517 <\/strong>(use \u524d\u9762\u4e3a\u53cc\u51cf\u53f7)\uff0c \u5373\uff1a<\/p>\n<div class=\"dm-code-snippet dark no-background no-background-mobile dm-normal-version\" style=\"background-color:#abb8c3;\" snippet-height=\"\">\n\t\t\t<div class=\"control-language\">\n                <div class=\"dm-buttons\">\n                    <div class=\"dm-buttons-left\">\n                        <div class=\"dm-button-snippet red-button\"><\/div>\n                        <div class=\"dm-button-snippet orange-button\"><\/div>\n                        <div class=\"dm-button-snippet green-button\"><\/div>\n                    <\/div>\n                    <div class=\"dm-buttons-right\">\n                        <a id=\"dm-copy-raw-code\">\n                        <span class=\"dm-copy-text\">Copy Code<\/span>\n                        <span class=\"dm-copy-confirmed\" style=\"display:none\">Copied<\/span>\n                        <span class=\"dm-error-message\" style=\"display:none\">Use a different Browser<\/span><\/a>\n                    <\/div>\n                <\/div>\n                <pre class=\"no-line-numbers\"><code id=\"dm-code-raw\" class=\"no-wrap language-shell\"><\/p>\n<pre class=\"dm-pre-admin-side\">pip install basicsr --use-pep517<\/pre>\n<p><\/code><\/pre>\n\t\t\t<\/div>\n        <\/div>\n<p>\u540e\u7eed\u8fc7\u7a0b\u5b89\u88c5dlib\u4e5f\u62a5\u540c\u6837\u7684\u9519\u8bef\uff0c\u4e5f\u53ef\u7528\u6b64\u65b9\u6cd5\u89e3\u51b3\uff1b<\/p>\n<p>\u731c\u60f3:\u5982\u9047\u5230 pyproject toml-based projects \u7c7b\u95ee\u9898\uff0c\u53ef\u5148\u5347\u7ea7pip\u540e\uff0c\u7136\u540e\u5728\u5b89\u88c5\u5305\u65f6\u4fee\u6539\u5b89\u88c5\u547d\u4ee4\u4e3a\uff1a<\/p>\n<div class=\"dm-code-snippet dark no-background no-background-mobile dm-normal-version\" style=\"background-color:#abb8c3;\" snippet-height=\"\">\n\t\t\t<div class=\"control-language\">\n                <div class=\"dm-buttons\">\n                    <div class=\"dm-buttons-left\">\n                        <div class=\"dm-button-snippet red-button\"><\/div>\n                        <div class=\"dm-button-snippet orange-button\"><\/div>\n                        <div class=\"dm-button-snippet green-button\"><\/div>\n                    <\/div>\n                    <div class=\"dm-buttons-right\">\n                        <a id=\"dm-copy-raw-code\">\n                        <span class=\"dm-copy-text\">Copy Code<\/span>\n                        <span class=\"dm-copy-confirmed\" style=\"display:none\">Copied<\/span>\n                        <span class=\"dm-error-message\" style=\"display:none\">Use a different Browser<\/span><\/a>\n                    <\/div>\n                <\/div>\n                <pre class=\"no-line-numbers\"><code id=\"dm-code-raw\" class=\"no-wrap language-shell\"><\/p>\n<pre class=\"dm-pre-admin-side\">pip install basicsr --use-pep517<\/pre>\n<p><\/code><\/pre>\n\t\t\t<\/div>\n        <\/div>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u8c03\u7814AI\u9879\u76ee\u7684\u6bd4\u8f83\u9891\u7e41\uff0c\u53d1\u73b0\u5f88\u591a\u9879\u76ee\u90fd\u4f1a\u7528\u5230 basicsr \u8fd9\u4e2a\u5e93\uff0c\u4f46\u5982\u679c\u76f4\u63a5\u5b89\u88c5\uff0c\u4f1a\u62a5\u62a5\u9519ERROR\uff1aCould not  &#8230;<\/p>\n","protected":false},"author":1,"featured_media":3913,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[83,82],"tags":[95,94,86,96],"class_list":["post-3912","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tips","category-82","tag-pip","tag-python","tag-86","tag-96"],"_links":{"self":[{"href":"https:\/\/10ccc.cc\/index.php?rest_route=\/wp\/v2\/posts\/3912","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/10ccc.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/10ccc.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/10ccc.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/10ccc.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3912"}],"version-history":[{"count":3,"href":"https:\/\/10ccc.cc\/index.php?rest_route=\/wp\/v2\/posts\/3912\/revisions"}],"predecessor-version":[{"id":4504,"href":"https:\/\/10ccc.cc\/index.php?rest_route=\/wp\/v2\/posts\/3912\/revisions\/4504"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/10ccc.cc\/index.php?rest_route=\/wp\/v2\/media\/3913"}],"wp:attachment":[{"href":"https:\/\/10ccc.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3912"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/10ccc.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3912"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/10ccc.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3912"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}