{"id":2356,"date":"2020-10-07T21:21:03","date_gmt":"2020-10-07T13:21:03","guid":{"rendered":"http:\/\/blog.ywdevops.cn\/?p=2356"},"modified":"2023-04-14T12:30:30","modified_gmt":"2023-04-14T04:30:30","slug":"qt5","status":"publish","type":"post","link":"https:\/\/blog.ywdevops.cn\/index.php\/2020\/10\/07\/qt5\/","title":{"rendered":"\u5b89\u88c5QT5\u4ee5\u53ca\u901a\u8fc7vscode\u914d\u7f6e"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>\u4e00\u3001\u5b89\u88c5PyQt5<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1\u3001\u5b89\u88c5QT5\u73af\u5883\uff1a pip install PyQt5 -i https:\/\/pypi.douban.com\/simple <\/p>\n\n\n\n<p class=\"has-luminous-vivid-amber-background-color has-background wp-block-paragraph\">\u6ce8\u610f\uff1a\u5982\u679c\u901a\u8fc7\u8c46\u74e3\u6e90\u5b89\u88c5\u5931\u8d25\uff0c\u4e5f\u53ef\u4ee5\u4f7f\u7528\u6e05\u534e\u5927\u5b66\u7684\u6e90\u6765\u8fdb\u884c\u5b89\u88c5\uff0c\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pip install  pyqt5  -i    https:\/\/pypi.tuna.tsinghua.edu.cn\/simple<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">2\u3001 \u5b89\u88c5Qt5\u56fe\u5f62\u8bbe\u8ba1\u5de5\u5177\uff0c\u6307\u4ee4\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pip install PyQt5-tools -i https:\/\/pypi.tuna.tsinghua.edu.cn\/simple #( \u56fe\u5f62\u754c\u9762\u5f00\u53d1\u5de5\u5177qt designer\u3001\u7ffb\u8bd1\u5de5\u5177liguist\u7b49\u7b49\u7684\u5de5\u5177 )<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u4e8c\u3001vscode\u914d\u7f6epython\u63d2\u4ef6<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1\u3001\u9996\u5148\u6253\u5f00vscode\uff0c\u5728\u6269\u5c55\u6309\u94ae\u4f4d\u7f6e\uff0c\u641c\u7d22python\uff0c\u7136\u540e\u5b89\u88c5\u5373\u53ef\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"291\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/04\/3-3.png\" alt=\"\" class=\"wp-image-13051\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/04\/3-3.png 710w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/04\/3-3-300x123.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/04\/3-3-600x246.png 600w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">2\u3001\u914d\u7f6ePython\u89e3\u91ca\u5668\uff0c\u5728\u9ed8\u8ba4\u754c\u9762\u6309F1\uff0c\u641c\u7d22\u680f\u8f93\u5165\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"707\" height=\"240\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/04\/4-3.png\" alt=\"\" class=\"wp-image-13053\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/04\/4-3.png 707w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/04\/4-3-300x102.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/04\/4-3-600x204.png 600w\" sizes=\"auto, (max-width: 707px) 100vw, 707px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u9009\u62e9\u4e4b\u524d\u5b89\u88c5python\u7248\u672c\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"705\" height=\"244\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/04\/4-4.png\" alt=\"\" class=\"wp-image-13055\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/04\/4-4.png 705w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/04\/4-4-300x104.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/04\/4-4-600x208.png 600w\" sizes=\"auto, (max-width: 705px) 100vw, 705px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u4e09\u3001VSCode\u914d\u7f6epyqt5\u63d2\u4ef6<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1\u3001\u6253\u5f00Vscode\uff0c\u5728\u6269\u5c55\u4f4d\u7f6e\u8f93\u5165Pyqt\uff0c\u70b9\u51fb\u5b89\u88c5\u5373\u53ef\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"707\" height=\"241\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/04\/5-2.png\" alt=\"\" class=\"wp-image-13057\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/04\/5-2.png 707w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/04\/5-2-300x102.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/04\/5-2-600x205.png 600w\" sizes=\"auto, (max-width: 707px) 100vw, 707px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">2\u3001\u5b89\u88c5\u540e\u70b9\u51fb\u8bbe\u7f6e\u4e0b\u7684\u6269\u5c55\u8bbe\u7f6e\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"706\" height=\"323\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/04\/6-3.png\" alt=\"\" class=\"wp-image-13058\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/04\/6-3.png 706w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/04\/6-3-300x137.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/04\/6-3-600x275.png 600w\" sizes=\"auto, (max-width: 706px) 100vw, 706px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">3\u3001\u914d\u7f6ePyuic:Cmd\u4e0eQtdesigner:Path\u8def\u5f84\uff0c\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#Pyuic:Cmd\u8def\u5f84\u4e00\u822c\u662f\u5728\u5b89\u88c5\u7684python\u8def\u5f84\u7684 \\Scripts\\pyuic5.exe\nD:\\Users\\Administrator\\AppData\\Local\\Programs\\Python\\Python310\\Scripts\\pyuic5\n#designer\u4e00\u822c\u662f\u5728\u5b89\u88c5python\u8def\u5f84\u4e0b\u7684\\Lib\\site-packages\\qt5_applications\\Qt\\bin\\designer.exe\nD:\\Users\\Administrator\\AppData\\Local\\Programs\\Python\\Python310\\Lib\\site-packages\\qt5_applications\\Qt\\bin\\designer.exe<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"705\" height=\"438\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/04\/7-3.png\" alt=\"\" class=\"wp-image-13060\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/04\/7-3.png 705w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/04\/7-3-300x186.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/04\/7-3-600x373.png 600w\" sizes=\"auto, (max-width: 705px) 100vw, 705px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u5b89\u88c5PyQt5 1\u3001\u5b89\u88c5QT5\u73af\u5883\uff1a pip install PyQt5 -i https:\/\/pypi. [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":2362,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[38,29],"tags":[],"class_list":["post-2356","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python","category-yunwei"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":8}},"_links":{"self":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts\/2356","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/comments?post=2356"}],"version-history":[{"count":20,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts\/2356\/revisions"}],"predecessor-version":[{"id":13063,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts\/2356\/revisions\/13063"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/media\/2362"}],"wp:attachment":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/media?parent=2356"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/categories?post=2356"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/tags?post=2356"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}