{"id":568,"date":"2020-09-28T11:06:38","date_gmt":"2020-09-28T03:06:38","guid":{"rendered":"http:\/\/104.es\/?p=568"},"modified":"2023-08-11T18:26:01","modified_gmt":"2023-08-11T10:26:01","slug":"visual-studio-code-terminal-conda","status":"publish","type":"post","link":"https:\/\/104.es\/index.php\/2020\/09\/28\/visual-studio-code-terminal-conda\/","title":{"rendered":"\u89e3\u6c7aVisual Studio Code\u7121\u6cd5\u5728Terminal\u4e2d\u57f7\u884c\u865b\u64ec\u74b0\u5883"},"content":{"rendered":"\n<p>\u5728\u9810\u8a2d\u7684\u60c5\u6cc1\u4e0b\uff0cWindows 10\u4e2d\u4f7f\u7528Visual Studio Code\u74b0\u5883\u8981\u9032\u5165Terminal\u4e2d\u57f7\u884c\u7a0b\u5f0f\u9032\u884c\u6e2c\u8a66\u6642\u6703\u9047\u5230\u7121\u6cd5\u9032\u5165\u865b\u64ec\u74b0\u5883\u7684\u60c5\u5f62\u3002\u89e3\u6c7a\u7684\u65b9\u6cd5\u5f88\u7c21\u55ae\u3002\u53ea\u8981\u4f60\u53e6\u5916\u4f7f\u7528\u7cfb\u7d71\u7ba1\u7406\u54e1\u6b0a\u9650\u53bb\u958b\u4e00\u500bPower Shell\uff0c\u7136\u5f8c\u57f7\u884c\u4ee5\u4e0b\u7684\u6307\u4ee4\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Set-ExecutionPolicy RemoteSigned<\/code><\/pre>\n\n\n\n<p>\u6b64\u6642\u7cfb\u7d71\u6703\u51fa\u73fe\u4ee5\u4e0b\u7684\u9078\u9805\u756b\u9762\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1030\" height=\"118\" src=\"http:\/\/104es.nkust.org\/wp-content\/uploads\/2020\/09\/image-11.png?w=1024\" alt=\"\" class=\"wp-image-572\" srcset=\"https:\/\/104.es\/wp-content\/uploads\/2020\/09\/image-11.png 1030w, https:\/\/104.es\/wp-content\/uploads\/2020\/09\/image-11-300x34.png 300w, https:\/\/104.es\/wp-content\/uploads\/2020\/09\/image-11-1024x117.png 1024w, https:\/\/104.es\/wp-content\/uploads\/2020\/09\/image-11-768x88.png 768w\" sizes=\"auto, (max-width: 1030px) 100vw, 1030px\" \/><\/figure>\n\n\n\n<p>\u6b64\u6642\u53ea\u8981\u8f38\u5165\u300cy\u300d\uff0c\u518d\u6309\u4e0bEnter\uff0c\u4e4b\u5f8c\uff0c\u518d\u56de\u5230Visual Studio Code\uff0c\u5c31\u53ef\u4ee5\u9806\u5229\u5730\u9032\u5165Terminal\u74b0\u5883\u4e2d\uff0c\u4f7f\u7528\u539f\u6709\u76ee\u9304\u4e4b\u4e0b\u5efa\u7acb\u7684\u865b\u64ec\u74b0\u5883\uff0c\u7121\u75db\u6e2c\u8a66Python\u7a0b\u5f0f\u78bc\u4e86\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u5728Visual Studio Code\u7684terminal\u74b0\u5883\u4f7f\u7528Anaconda\u74b0\u5883<\/h2>\n\n\n\n<p>\u90a3\u9ebc\u5982\u679c\u6211\u5011\u60f3\u8981\u5728Visual Studio Code\u4e2d\u4f7f\u7528Anaconda\u7684\u865b\u64ec\u74b0\u5883\u7684\u8a71\uff0c\u53ef\u4ee5\u5728Anaconda Prompt\u4e2d\u57f7\u884c\u4ee5\u4e0b\u7684\u6307\u4ee4\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>conda init powershell<\/code><\/pre>\n\n\n\n<p>\u4e4b\u5f8c\u518dVisual Studio Code\u74b0\u5883\u4e2d\u9032\u5165Terminal\u4e4b\u5f8c\uff0c\u5c31\u6703\u81ea\u52d5\u9032\u5165Anaconda\u7684base\u865b\u64ec\u74b0\u5883\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u9810\u8a2d\u7684\u60c5\u6cc1\u4e0b\uff0c\u4f7f\u7528Visual Studio Code\u74b0\u5883\u8981\u9032\u5165Terminal\u4e2d\u57f7\u884c\u7a0b\u5f0f\u9032\u884c\u6e2c\u8a66\u6642\u6703\u9047\u5230\u7121\u6cd5\u9032\u5165\u865b\u64ec\u74b0\u5883\u7684\u60c5\u5f62\u3002\u89e3\u6c7a\u7684\u65b9\u6cd5\u5f88\u7c21\u55ae\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[6,15],"tags":[59,68],"class_list":["post-568","post","type-post","status-publish","format-standard","hentry","category-django","category-python","tag-terminal","tag-visual-studio-code"],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/posts\/568","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/comments?post=568"}],"version-history":[{"count":1,"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/posts\/568\/revisions"}],"predecessor-version":[{"id":2942,"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/posts\/568\/revisions\/2942"}],"wp:attachment":[{"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/media?parent=568"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/categories?post=568"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/tags?post=568"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}