{"id":3330,"date":"2018-07-11T09:23:45","date_gmt":"2018-07-11T01:23:45","guid":{"rendered":"http:\/\/www.yewen.us\/blog\/?p=3330"},"modified":"2018-07-11T09:23:45","modified_gmt":"2018-07-11T01:23:45","slug":"invalid-characters-in-environment-variable-path-by-vscode-python-extension","status":"publish","type":"post","link":"https:\/\/www.yewen.us\/blog\/2018\/07\/invalid-characters-in-environment-variable-path-by-vscode-python-extension\/","title":{"rendered":"VS Code \u91cc Python \u6269\u5c55\u63d0\u793a Path \u6709\u975e\u6cd5\u5b57\u7b26"},"content":{"rendered":"<p>\u6700\u8fd1\u5728 Win10 \u4e0b\u6253\u5f00 VS Code \u65f6\u603b\u4f1a\u9047\u5230\u8fd9\u4e2a\u62a5\u9519<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/user-images.githubusercontent.com\/30827238\/42127100-fcbaaa72-7c92-11e8-8546-e55f65c91373.png\" width=\"1137\" height=\"438\" alt=\"VS Code \u542f\u52a8\u65f6 Python \u6269\u5c55\u63d0\u793a Path \u73af\u5883\u53d8\u91cf\u6709\u9519\u8bef\" class=\"alignnone size-medium\" \/><\/p>\n<p>\u641c\u4e86\u4e00\u5708\u53d1\u73b0\u8fd8\u662f\u5b98\u65b9\u7684\u9505\uff0c\u8be6\u89c1 <a href=\"https:\/\/github.com\/Microsoft\/vscode-python\/issues\/2076\" rel=\"noopener\" target=\"_blank\">https:\/\/github.com\/Microsoft\/vscode-python\/issues\/2076<\/a><\/p>\n<p>\u770b\u4e86\u4e0b GitHub \u4e0a\u7684 issue \u548c Stack Overflow \u4e0a\u7684\u8ba8\u8bba\uff0c\u7406\u89e3\u4e86\u4e0b\u9020\u6210\u8fd9\u4e2a\u95ee\u9898\u7684\u5927\u6982\u539f\u56e0<\/p>\n<ol>\n<li>VS Code \u91cc Python \u6269\u5c55\u4f1a\u68c0\u67e5 Windows \u7684 Path \u73af\u5883\u53d8\u91cf\u5e76\u89e3\u6790\uff0c\u5982\u679c\u6709\u9884\u671f\u4e4b\u5916\u7684\u5206\u53f7 <code>';'<\/code> \u53cc\u5f15\u53f7 <code>'\"'<\/code> \u6216\u8fde\u7eed\u5206\u53f7 <code>';;'<\/code> \u5219\u62a5\u9519<\/li>\n<li>Windows \u7684 Path \u5f88\u53ef\u80fd\u662f\u7531\u82e5\u5e72\u4e2a\u53d8\u91cf\u7ec4\u6210\u7684\uff0c\u6bd4\u5982 <code>Path=%Path%;C:\\Python27\\;%LOCAL_PATH%<\/code><\/li>\n<li>\u6709\u7684\u53d8\u91cf\u4e3a\u4e86\u81ea\u6211\u4e25\u8c28\uff0c\u6700\u540e\u662f\u52a0\u4e86\u5206\u53f7\u7684\uff0c\u6709\u7684\u73af\u5883\u53d8\u91cf\u5728\u5f15\u7528\u522b\u4eba\u65f6\uff0c\u6015\u522b\u4eba\u6700\u540e\u6ca1\u52a0\u5206\u53f7\uff0c\u5c31\u5728\u5f15\u7528\u540e\u7acb\u9a6c\u63a5\u4e0a\u4e00\u4e2a\u5206\u53f7<\/li>\n<li>\u62fc\u8d77\u6765\u5c31\u5475\u5475\u4e86<\/li>\n<\/ol>\n<p>\u770b\u8d77\u6765\u5b98\u65b9\u5df2\u7ecf\u77e5\u6653\u5e76\u660e\u786e\u95ee\u9898\uff0c\u53ea\u80fd\u7b49\u4e0b\u4e00\u4e2a\u7248\u672c\u66f4\u65b0\u53bb\u6389\u8fd9\u4e2a\u4e25\u683c\u68c0\u67e5\uff0c\u6216\u770b\u4ed6\u4eec\u6709\u4ec0\u4e48\u66f4\u597d\u7684\u5904\u7406\u65b9\u6cd5<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u5728 Win10 \u4e0b\u6253\u5f00 VS Code \u65f6\u603b\u4f1a\u9047\u5230\u8fd9\u4e2a\u62a5\u9519 \u641c\u4e86\u4e00\u5708\u53d1\u73b0\u8fd8\u662f\u5b98\u65b9\u7684\u9505\uff0c\u8be6\u89c1 https:\/ [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[7],"tags":[668],"class_list":["post-3330","post","type-post","status-publish","format-standard","hentry","category-tech-notes","tag-vscode"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4aR5e-RI","_links":{"self":[{"href":"https:\/\/www.yewen.us\/blog\/wp-json\/wp\/v2\/posts\/3330","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yewen.us\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yewen.us\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yewen.us\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yewen.us\/blog\/wp-json\/wp\/v2\/comments?post=3330"}],"version-history":[{"count":2,"href":"https:\/\/www.yewen.us\/blog\/wp-json\/wp\/v2\/posts\/3330\/revisions"}],"predecessor-version":[{"id":3332,"href":"https:\/\/www.yewen.us\/blog\/wp-json\/wp\/v2\/posts\/3330\/revisions\/3332"}],"wp:attachment":[{"href":"https:\/\/www.yewen.us\/blog\/wp-json\/wp\/v2\/media?parent=3330"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yewen.us\/blog\/wp-json\/wp\/v2\/categories?post=3330"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yewen.us\/blog\/wp-json\/wp\/v2\/tags?post=3330"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}