{"id":987875,"date":"2024-12-27T07:57:25","date_gmt":"2024-12-26T23:57:25","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/987875.html"},"modified":"2024-12-27T07:57:27","modified_gmt":"2024-12-26T23:57:27","slug":"%e5%a6%82%e4%bd%95%e7%bb%99python%e8%a3%85myqr","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/987875.html","title":{"rendered":"\u5982\u4f55\u7ed9python\u88c5myqr"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25063801\/714c4257-5ca3-4db2-8f65-f97d6d98b6fc.webp\" alt=\"\u5982\u4f55\u7ed9python\u88c5myqr\" \/><\/p>\n<p><p> <strong>\u8981\u7ed9Python\u5b89\u88c5MyQR\uff0c\u53ef\u4ee5\u4f7f\u7528pip\u5b89\u88c5\u3001\u68c0\u67e5Python\u7248\u672c\u3001\u914d\u7f6e\u73af\u5883\u53d8\u91cf<\/strong>\u3002\u6211\u4eec\u5c06\u8be6\u7ec6\u63cf\u8ff0\u5176\u4e2d\u4e00\u4e2a\u6b65\u9aa4\uff1a\u9996\u5148\uff0c\u786e\u4fdd\u4f60\u7684Python\u73af\u5883\u5df2\u7ecf\u5b89\u88c5\u4e86pip\uff0c\u8fd9\u662fPython\u7684\u5305\u7ba1\u7406\u5668\uff0c\u7528\u4e8e\u5b89\u88c5\u548c\u7ba1\u7406Python\u5305\u3002\u5927\u591a\u6570\u73b0\u4ee3\u7684Python\u7248\u672c\u5df2\u7ecf\u9ed8\u8ba4\u5b89\u88c5\u4e86pip\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7\u5728\u547d\u4ee4\u884c\u4e2d\u8fd0\u884c<code>pip --version<\/code>\u6765\u786e\u8ba4\u3002\u5982\u679c\u6ca1\u6709\u5b89\u88c5pip\uff0c\u4f60\u9700\u8981\u6839\u636e\u64cd\u4f5c\u7cfb\u7edf\u4e0b\u8f7d\u5e76\u5b89\u88c5\u5b83\u3002\u63a5\u4e0b\u6765\uff0c\u901a\u8fc7\u8fd0\u884c\u547d\u4ee4<code>pip install myqr<\/code>\u6765\u5b89\u88c5MyQR\u5e93\u3002<\/p>\n<\/p>\n<hr>\n<p><p>\u4e00\u3001PIP\u5b89\u88c5MYQR<\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\u4f7f\u7528MyQR\uff0c\u9700\u8981\u5148\u5b89\u88c5\u8fd9\u4e2a\u5e93\u3002MyQR\u662f\u4e00\u4e2a\u8f7b\u91cf\u7ea7\u7684\u5e93\uff0c\u4e3b\u8981\u7528\u4e8e\u751f\u6210\u4e8c\u7ef4\u7801\u3002\u901a\u8fc7pip\u5b89\u88c5MyQR\u662f\u6700\u7b80\u5355\u548c\u63a8\u8350\u7684\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u68c0\u67e5Python\u7248\u672c<\/strong>\uff1a\u5728\u5b89\u88c5MyQR\u4e4b\u524d\uff0c\u786e\u4fdd\u4f60\u7684Python\u7248\u672c\u662f3.x\uff0c\u8fd9\u662f\u56e0\u4e3aMyQR\u9700\u8981Python 3\u4ee5\u4e0a\u7684\u7248\u672c\u652f\u6301\u3002\u53ef\u4ee5\u901a\u8fc7\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165<code>python --version<\/code>\u6765\u68c0\u67e5\u4f60\u7684Python\u7248\u672c\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5b89\u88c5MyQR<\/strong>\uff1a\u6253\u5f00\u547d\u4ee4\u884c\u6216\u7ec8\u7aef\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u6765\u5b89\u88c5MyQR\uff1a<\/p>\n<\/p>\n<p><pre><code>pip install myqr<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u547d\u4ee4\u4f1a\u81ea\u52a8\u4e0b\u8f7d\u5e76\u5b89\u88c5MyQR\u53ca\u5176\u4f9d\u8d56\u5e93\u3002\u5b89\u88c5\u8fc7\u7a0b\u4e2d\uff0cpip\u4f1a\u4ecePython Package Index\uff08PyPI\uff09\u83b7\u53d6MyQR\u5305\u5e76\u5c06\u5176\u5b89\u88c5\u5230\u4f60\u7684Python\u73af\u5883\u4e2d\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e8c\u3001\u68c0\u67e5\u5b89\u88c5<\/p>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u786e\u4fddMyQR\u5df2\u7ecf\u6b63\u786e\u5b89\u88c5\u5e76\u53ef\u4ee5\u4f7f\u7528\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u6b65\u9aa4\u8fdb\u884c\u9a8c\u8bc1\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5bfc\u5165MyQR<\/strong>\uff1a\u5728Python\u4ea4\u4e92\u73af\u5883\u4e2d\uff0c\u5c1d\u8bd5\u5bfc\u5165MyQR\u5e93\u4ee5\u786e\u4fdd\u5b89\u88c5\u6210\u529f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from MyQR import myqr<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5982\u679c\u6ca1\u6709\u9519\u8bef\u4fe1\u606f\uff0c\u8bf4\u660eMyQR\u5b89\u88c5\u6210\u529f\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6d4b\u8bd5\u529f\u80fd<\/strong>\uff1a\u4f7f\u7528MyQR\u751f\u6210\u4e00\u4e2a\u7b80\u5355\u7684\u4e8c\u7ef4\u7801\u4ee5\u8fdb\u4e00\u6b65\u9a8c\u8bc1\u3002\u8f93\u5165\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">myqr.run(<\/p>\n<p>    words=&#39;https:\/\/www.example.com&#39;,<\/p>\n<p>    save_name=&#39;example_qr.png&#39;<\/p>\n<p>)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u6bb5\u4ee3\u7801\u5c06\u751f\u6210\u4e00\u4e2a\u6307\u5411<code>https:\/\/www.example.com<\/code>\u7684\u4e8c\u7ef4\u7801\uff0c\u5e76\u4fdd\u5b58\u4e3a<code>example_qr.png<\/code>\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e09\u3001\u914d\u7f6e\u73af\u5883\u53d8\u91cf<\/p>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u64cd\u4f5c\u7cfb\u7edf\u4e2d\uff0c\u53ef\u80fd\u9700\u8981\u914d\u7f6e\u73af\u5883\u53d8\u91cf\u4ee5\u4fbf\u4e8eMyQR\u7684\u4f7f\u7528\u3002\u73af\u5883\u53d8\u91cf\u786e\u4fddPython\u53ca\u5176\u5e93\u53ef\u4ee5\u5728\u7cfb\u7edf\u4e2d\u6b63\u786e\u8c03\u7528\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>Windows\u7cfb\u7edf<\/strong>\uff1a\u5728Windows\u4e2d\uff0c\u901a\u5e38\u9700\u8981\u5c06Python\u548cpip\u7684\u8def\u5f84\u6dfb\u52a0\u5230\u7cfb\u7edf\u7684\u73af\u5883\u53d8\u91cf\u4e2d\u3002\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u6b65\u9aa4\u8fdb\u884c\u914d\u7f6e\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u6253\u5f00\u201c\u63a7\u5236\u9762\u677f\u201d\uff0c\u9009\u62e9\u201c\u7cfb\u7edf\u548c\u5b89\u5168\u201d\uff0c\u7136\u540e\u9009\u62e9\u201c\u7cfb\u7edf\u201d\u3002<\/li>\n<li>\u70b9\u51fb\u201c\u9ad8\u7ea7\u7cfb\u7edf\u8bbe\u7f6e\u201d\uff0c\u7136\u540e\u70b9\u51fb\u201c\u73af\u5883\u53d8\u91cf\u201d\u3002<\/li>\n<li>\u5728\u201c\u7cfb\u7edf\u53d8\u91cf\u201d\u4e2d\uff0c\u627e\u5230\u201cPath\u201d\u53d8\u91cf\uff0c\u70b9\u51fb\u201c\u7f16\u8f91\u201d\u3002<\/li>\n<li>\u5c06Python\u5b89\u88c5\u76ee\u5f55\u548cScripts\u76ee\u5f55\uff08\u901a\u5e38\u662f<code>C:\\Python39\\Scripts<\/code>\u548c<code>C:\\Python39<\/code>\uff09\u6dfb\u52a0\u5230Path\u4e2d\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>MacOS\u548cLinux\u7cfb\u7edf<\/strong>\uff1a\u5728\u8fd9\u4e9b\u7cfb\u7edf\u4e2d\uff0c\u901a\u5e38\u9700\u8981\u7f16\u8f91<code>.bashrc<\/code>\u6216<code>.bash_profile<\/code>\u6587\u4ef6\u4ee5\u6dfb\u52a0Python\u8def\u5f84\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">export PATH=&quot;\/usr\/local\/bin\/python3:$PATH&quot;<\/p>\n<p>export PATH=&quot;\/usr\/local\/bin\/pip3:$PATH&quot;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u7ec8\u7aef\u4e2d\u7f16\u8f91\u5e76\u4fdd\u5b58\u8fd9\u4e9b\u6587\u4ef6\uff0c\u7136\u540e\u8fd0\u884c<code>source ~\/.bashrc<\/code>\u6216<code>source ~\/.bash_profile<\/code>\u4ee5\u4f7f\u66f4\u6539\u751f\u6548\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u56db\u3001\u4f7f\u7528MyQR\u5e93\u7684\u529f\u80fd<\/p>\n<\/p>\n<p><p>MyQR\u4e0d\u4ec5\u4ec5\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u4e8c\u7ef4\u7801\u751f\u6210\u5de5\u5177\uff0c\u5b83\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u529f\u80fd\u4ee5\u6ee1\u8db3\u4e0d\u540c\u7684\u9700\u6c42\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u751f\u6210\u9759\u6001\u4e8c\u7ef4\u7801<\/strong>\uff1aMyQR\u80fd\u591f\u751f\u6210\u9759\u6001\u7684\u4e8c\u7ef4\u7801\uff0c\u8fd9\u4e9b\u4e8c\u7ef4\u7801\u53ef\u5305\u542b\u94fe\u63a5\u3001\u6587\u672c\u7b49\u4fe1\u606f\u3002\u901a\u8fc7\u8c03\u7528<code>myqr.run()<\/code>\u51fd\u6570\u5e76\u6307\u5b9a<code>words<\/code>\u53c2\u6570\uff0c\u4f60\u53ef\u4ee5\u751f\u6210\u4efb\u4f55\u5185\u5bb9\u7684\u4e8c\u7ef4\u7801\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u751f\u6210\u52a8\u6001\u4e8c\u7ef4\u7801<\/strong>\uff1a\u867d\u7136MyQR\u672c\u8eab\u4e0d\u652f\u6301\u52a8\u6001\u4e8c\u7ef4\u7801\uff0c\u4f46\u4f60\u53ef\u4ee5\u901a\u8fc7\u5b9a\u671f\u66f4\u65b0\u4e8c\u7ef4\u7801\u5185\u5bb9\u7684\u65b9\u6cd5\u6765\u5b9e\u73b0\u52a8\u6001\u6548\u679c\u3002\u4f8b\u5982\uff0c\u5b9a\u671f\u751f\u6210\u65b0\u7684\u4e8c\u7ef4\u7801\u6587\u4ef6\u5e76\u66ff\u6362\u65e7\u7684\u6587\u4ef6\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u81ea\u5b9a\u4e49\u4e8c\u7ef4\u7801\u6837\u5f0f<\/strong>\uff1aMyQR\u5141\u8bb8\u7528\u6237\u81ea\u5b9a\u4e49\u4e8c\u7ef4\u7801\u7684\u5927\u5c0f\u3001\u989c\u8272\u548c\u80cc\u666f\u56fe\u7247\u7b49\u3002\u901a\u8fc7\u8bbe\u7f6e<code>colorized<\/code>\u548c<code>picture<\/code>\u53c2\u6570\uff0c\u53ef\u4ee5\u751f\u6210\u4e2a\u6027\u5316\u7684\u4e8c\u7ef4\u7801\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e94\u3001\u5e38\u89c1\u95ee\u9898\u53ca\u89e3\u51b3\u65b9\u6cd5<\/p>\n<\/p>\n<p><p>\u5728\u4f7f\u7528MyQR\u65f6\uff0c\u53ef\u80fd\u4f1a\u9047\u5230\u4e00\u4e9b\u5e38\u89c1\u95ee\u9898\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u89e3\u51b3\u65b9\u6848\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b89\u88c5\u5931\u8d25<\/strong>\uff1a\u5982\u679c\u5728\u5b89\u88c5MyQR\u65f6\u9047\u5230\u95ee\u9898\uff0c\u9996\u5148\u786e\u4fdd\u4f60\u7684\u7f51\u7edc\u8fde\u63a5\u6b63\u5e38\u3002\u7136\u540e\uff0c\u5c1d\u8bd5\u4f7f\u7528<code>pip install --upgrade pip<\/code>\u66f4\u65b0pip\u7248\u672c\uff0c\u518d\u6b21\u5c1d\u8bd5\u5b89\u88c5\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5bfc\u5165\u5931\u8d25<\/strong>\uff1a\u5982\u679c\u5bfc\u5165MyQR\u65f6\u51fa\u73b0<code>ModuleNotFoundError<\/code>\u9519\u8bef\uff0c\u68c0\u67e5\u662f\u5426\u5b89\u88c5\u5728\u6b63\u786e\u7684Python\u73af\u5883\u4e2d\u3002\u53ef\u4ee5\u4f7f\u7528<code>pip show myqr<\/code>\u6765\u68c0\u67e5\u5b89\u88c5\u8def\u5f84\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u751f\u6210\u4e8c\u7ef4\u7801\u5931\u8d25<\/strong>\uff1a\u786e\u4fdd\u8f93\u5165\u7684\u5185\u5bb9\u683c\u5f0f\u6b63\u786e\uff0c\u4f8b\u5982\uff0cURL\u9700\u8981\u4ee5<code>http:\/\/<\/code>\u6216<code>https:\/\/<\/code>\u5f00\u5934\u3002\u6b64\u5916\uff0c\u68c0\u67e5\u6587\u4ef6\u4fdd\u5b58\u8def\u5f84\u662f\u5426\u5b58\u5728\u5e76\u5177\u6709\u5199\u6743\u9650\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u516d\u3001MyQR\u7684\u9ad8\u7ea7\u529f\u80fd<\/p>\n<\/p>\n<p><p>MyQR\u4e0d\u4ec5\u652f\u6301\u57fa\u672c\u7684\u4e8c\u7ef4\u7801\u751f\u6210\u529f\u80fd\uff0c\u8fd8\u63d0\u4f9b\u4e86\u4e00\u4e9b\u9ad8\u7ea7\u529f\u80fd\uff0c\u53ef\u4ee5\u5728\u4e0d\u540c\u7684\u573a\u666f\u4e0b\u4f7f\u7528\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u63a7\u5236\u4e8c\u7ef4\u7801\u7684\u7ea0\u9519\u7ea7\u522b<\/strong>\uff1aMyQR\u652f\u6301\u4e0d\u540c\u7684\u7ea0\u9519\u7ea7\u522b\uff08L\u3001M\u3001Q\u3001H\uff09\uff0c\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e<code>level<\/code>\u53c2\u6570\u6765\u6307\u5b9a\u3002\u8fd9\u5bf9\u4e8e\u5728\u8f83\u5dee\u7684\u626b\u63cf\u6761\u4ef6\u4e0b\u63d0\u9ad8\u4e8c\u7ef4\u7801\u7684\u8bc6\u522b\u7387\u975e\u5e38\u6709\u7528\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u751f\u6210\u827a\u672f\u4e8c\u7ef4\u7801<\/strong>\uff1a\u901a\u8fc7\u5c06<code>colorized<\/code>\u53c2\u6570\u8bbe\u7f6e\u4e3a<code>True<\/code>\uff0c\u53ef\u4ee5\u751f\u6210\u5e26\u6709\u989c\u8272\u7684\u4e8c\u7ef4\u7801\u3002\u7ed3\u5408<code>picture<\/code>\u53c2\u6570\uff0c\u53ef\u4ee5\u5728\u4e8c\u7ef4\u7801\u4e2d\u5d4c\u5165\u80cc\u666f\u56fe\u7247\uff0c\u4f7f\u5176\u66f4\u52a0\u7f8e\u89c2\u548c\u4e2a\u6027\u5316\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6279\u91cf\u751f\u6210\u4e8c\u7ef4\u7801<\/strong>\uff1a\u5982\u679c\u9700\u8981\u751f\u6210\u5927\u91cf\u4e8c\u7ef4\u7801\uff0c\u53ef\u4ee5\u7f16\u5199\u811a\u672c\u5faa\u73af\u8c03\u7528<code>myqr.run()<\/code>\u51fd\u6570\uff0c\u5e76\u4f20\u5165\u4e0d\u540c\u7684\u53c2\u6570\u3002\u8fd9\u5bf9\u4e8e\u9700\u8981\u6279\u91cf\u5904\u7406\u7684\u573a\u666f\u975e\u5e38\u5b9e\u7528\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e03\u3001MyQR\u5e94\u7528\u573a\u666f<\/p>\n<\/p>\n<p><p>MyQR\u7684\u5e94\u7528\u573a\u666f\u975e\u5e38\u5e7f\u6cdb\uff0c\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5178\u578b\u7684\u4f7f\u7528\u573a\u666f\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u8425\u9500\u63a8\u5e7f<\/strong>\uff1a\u5728\u8425\u9500\u6d3b\u52a8\u4e2d\uff0c\u4e8c\u7ef4\u7801\u53ef\u4ee5\u7528\u4e8e\u5206\u4eab\u6d3b\u52a8\u94fe\u63a5\u3001\u4f18\u60e0\u4fe1\u606f\u7b49\uff0c\u65b9\u4fbf\u7528\u6237\u5feb\u901f\u8bbf\u95ee\u76f8\u5173\u7f51\u9875\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4fe1\u606f\u7ba1\u7406<\/strong>\uff1a\u5728\u4fe1\u606f\u7ba1\u7406\u4e2d\uff0c\u4e8c\u7ef4\u7801\u53ef\u4ee5\u7528\u4e8e\u6807\u8bc6\u4ea7\u54c1\u3001\u8d44\u4ea7\u7b49\uff0c\u4fbf\u4e8e\u5feb\u901f\u8bc6\u522b\u548c\u7ba1\u7406\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4e2a\u4eba\u5206\u4eab<\/strong>\uff1a\u4e2a\u4eba\u7528\u6237\u53ef\u4ee5\u4f7f\u7528\u4e8c\u7ef4\u7801\u5206\u4eab\u540d\u7247\u3001\u8054\u7cfb\u65b9\u5f0f\u7b49\u4fe1\u606f\uff0c\u7b80\u5316\u4ea4\u6362\u4fe1\u606f\u7684\u8fc7\u7a0b\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u516b\u3001MyQR\u4e0e\u5176\u4ed6\u4e8c\u7ef4\u7801\u5e93\u7684\u5bf9\u6bd4<\/p>\n<\/p>\n<p><p>\u4e0e\u5176\u4ed6\u4e8c\u7ef4\u7801\u751f\u6210\u5e93\u76f8\u6bd4\uff0cMyQR\u5177\u6709\u72ec\u7279\u7684\u4f18\u52bf\u548c\u7279\u70b9\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u6613\u7528\u6027<\/strong>\uff1aMyQR\u63d0\u4f9b\u4e86\u7b80\u5355\u6613\u7528\u7684API\u63a5\u53e3\uff0c\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u5c11\u91cf\u4ee3\u7801\u751f\u6210\u4e8c\u7ef4\u7801\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u529f\u80fd\u4e30\u5bcc<\/strong>\uff1aMyQR\u652f\u6301\u591a\u79cd\u4e8c\u7ef4\u7801\u6837\u5f0f\u548c\u81ea\u5b9a\u4e49\u9009\u9879\uff0c\u6ee1\u8db3\u4e0d\u540c\u7684\u4f7f\u7528\u9700\u6c42\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8de8\u5e73\u53f0\u652f\u6301<\/strong>\uff1aMyQR\u53ef\u4ee5\u5728Windows\u3001MacOS\u548cLinux\u7b49\u591a\u4e2a\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u4f7f\u7528\uff0c\u5177\u6709\u826f\u597d\u7684\u8de8\u5e73\u53f0\u517c\u5bb9\u6027\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e5d\u3001\u603b\u7ed3\u4e0e\u5c55\u671b<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u5185\u5bb9\uff0c\u6211\u4eec\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u5982\u4f55\u5b89\u88c5\u548c\u4f7f\u7528MyQR\u5e93\u3002MyQR\u4f5c\u4e3a\u4e00\u4e2a\u529f\u80fd\u5f3a\u5927\u4e14\u6613\u4e8e\u4f7f\u7528\u7684\u4e8c\u7ef4\u7801\u751f\u6210\u5de5\u5177\uff0c\u53ef\u4ee5\u5e7f\u6cdb\u5e94\u7528\u4e8e\u5404\u4e2a\u9886\u57df\u3002\u968f\u7740\u6280\u672f\u7684\u4e0d\u65ad\u53d1\u5c55\uff0c\u4e8c\u7ef4\u7801\u7684\u5e94\u7528\u573a\u666f\u5c06\u66f4\u52a0\u5e7f\u6cdb\uff0c\u800cMyQR\u4e5f\u5c06\u4e0d\u65ad\u66f4\u65b0\u548c\u4f18\u5316\uff0c\u4e3a\u7528\u6237\u63d0\u4f9b\u66f4\u597d\u7684\u4f7f\u7528\u4f53\u9a8c\u3002\u5e0c\u671b\u901a\u8fc7\u672c\u6587\u7684\u4ecb\u7ecd\uff0c\u80fd\u5e2e\u52a9\u4f60\u66f4\u597d\u5730\u7406\u89e3\u548c\u4f7f\u7528MyQR\u5e93\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5b89\u88c5myqr\u5e93\uff1f<\/strong><br \/>\u8981\u5728Python\u4e2d\u5b89\u88c5myqr\u5e93\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528pip\u5de5\u5177\u3002\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\u6216\u7ec8\u7aef\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<code>pip install myqr<\/code>\u3002\u786e\u4fdd\u60a8\u7684Python\u73af\u5883\u5df2\u6b63\u786e\u8bbe\u7f6e\uff0c\u5e76\u4e14pip\u5df2\u5b89\u88c5\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u60a8\u53ef\u4ee5\u5728Python\u811a\u672c\u4e2d\u5bfc\u5165myqr\u5e93\u8fdb\u884c\u4f7f\u7528\u3002<\/p>\n<p><strong>myqr\u5e93\u7684\u4e3b\u8981\u529f\u80fd\u662f\u4ec0\u4e48\uff1f<\/strong><br \/>myqr\u5e93\u4e3b\u8981\u7528\u4e8e\u751f\u6210\u4e8c\u7ef4\u7801\u3002\u7528\u6237\u53ef\u4ee5\u901a\u8fc7myqr\u5e93\u521b\u5efa\u5305\u542b\u6587\u672c\u3001\u94fe\u63a5\u6216\u5176\u4ed6\u4fe1\u606f\u7684\u4e8c\u7ef4\u7801\uff0c\u5e76\u4e14\u53ef\u4ee5\u81ea\u5b9a\u4e49\u4e8c\u7ef4\u7801\u7684\u6837\u5f0f\u548c\u989c\u8272\u3002\u8fd9\u4f7f\u5f97myqr\u5e93\u5728\u751f\u6210\u4e8c\u7ef4\u7801\u7684\u5e94\u7528\u573a\u666f\u4e2d\u975e\u5e38\u7075\u6d3b\u548c\u5b9e\u7528\u3002<\/p>\n<p><strong>\u5728\u4f7f\u7528myqr\u5e93\u65f6\uff0c\u6709\u54ea\u4e9b\u5e38\u89c1\u95ee\u9898\u9700\u8981\u6ce8\u610f\uff1f<\/strong><br \/>\u5728\u4f7f\u7528myqr\u5e93\u65f6\uff0c\u7528\u6237\u53ef\u80fd\u4f1a\u9047\u5230\u4e00\u4e9b\u5e38\u89c1\u95ee\u9898\u3002\u4f8b\u5982\uff0c\u786e\u4fdd\u4f7f\u7528\u7684Python\u7248\u672c\u4e0emyqr\u5e93\u517c\u5bb9\uff1b\u5728\u751f\u6210\u4e8c\u7ef4\u7801\u65f6\uff0c\u786e\u4fdd\u8f93\u5165\u7684\u4fe1\u606f\u683c\u5f0f\u6b63\u786e\uff0c\u907f\u514d\u56e0\u683c\u5f0f\u9519\u8bef\u5bfc\u81f4\u751f\u6210\u5931\u8d25\u3002\u6b64\u5916\uff0c\u4e86\u89e3\u5982\u4f55\u8c03\u6574\u4e8c\u7ef4\u7801\u7684\u5c3a\u5bf8\u548c\u6837\u5f0f\u4e5f\u662f\u975e\u5e38\u91cd\u8981\u7684\uff0c\u8fd9\u6837\u53ef\u4ee5\u6ee1\u8db3\u4e0d\u540c\u573a\u5408\u7684\u9700\u6c42\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u8981\u7ed9Python\u5b89\u88c5MyQR\uff0c\u53ef\u4ee5\u4f7f\u7528pip\u5b89\u88c5\u3001\u68c0\u67e5Python\u7248\u672c\u3001\u914d\u7f6e\u73af\u5883\u53d8\u91cf\u3002\u6211\u4eec\u5c06\u8be6\u7ec6\u63cf\u8ff0\u5176\u4e2d\u4e00\u4e2a\u6b65 [&hellip;]","protected":false},"author":3,"featured_media":987884,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/987875"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=987875"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/987875\/revisions"}],"predecessor-version":[{"id":987889,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/987875\/revisions\/987889"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/987884"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=987875"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=987875"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=987875"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}