1(window.webpackJsonp=window.webpackJsonp||[]).push([[104],{250:function(e,a,n){"use strict";n.r(a),n.d(a,"readingTime",function(){return c}),n.d(a,"default",function(){return i}),n.d(a,"tableOfContents",function(){return s}),n.d(a,"frontMatter",function(){return r});var t=n(36),l=(n(0),n(35)),c={text:"1 min read",minutes:.37,time:22200,words:74},m={},d="wrapper";function i(e){var a=e.components,n=Object(t.a)(e,["components"]);return Object(l.mdx)(d,Object.assign({},m,n,{components:a,mdxType:"MDXLayout"}),Object(l.mdx)("h2",{id:"\u9002\u7528\u73af\u5883"},"\u9002\u7528\u73af\u5883"),Object(l.mdx)("ul",null,Object(l.mdx)("li",{parentName:"ul"},"\u5168\u5e73\u53f0(windows\u3001linux\u3001macOS)"),Object(l.mdx)("li",{parentName:"ul"},"\u672c\u6587\u4e3b\u8981\u9488\u5bf9windows"),Object(l.mdx)("li",{parentName:"ul"},"\u53c2\u8003\u8fd9\u6bb5",Object(l.mdx)("a",Object.assign({parentName:"li"},{href:"https://www.youtube.com/watch?v=YJC6ldI3hWk"}),"\u89c6\u9891"))),Object(l.mdx)("h2",{id:"\u5b89\u88c5conda"},"\u5b89\u88c5conda"),Object(l.mdx)("ul",null,Object(l.mdx)("li",{parentName:"ul"},"\u8fd9\u91cc\u4ec5\u5b89\u88c5\u5305\u7ba1\u7406\u5668",Object(l.mdx)("a",Object.assign({parentName:"li"},{href:"http://conda.pydata.org/miniconda.html"}),"miniconda"),"\uff0c\u800c\u4e0d\u662f400MB+\u7684conda(\u5305\u542bn\u591a\u79d1\u5b66\u8ba1\u7b97\u5e93)"),Object(l.mdx)("li",{parentName:"ul"},"miniconda\u7248\u672c\u7684\u9009\u62e9\u5e76\u4e0d\u7279\u522b\u91cd\u8981\uff0c\u56e0\u4e3aconda\u53ef\u4ee5\u4ee5\u9879\u76ee\u4e3a\u5355\u4f4d\uff0c\u5206\u522b\u5b89\u88c5python\u7248\u672c\uff0c\u5e76\u5728\u4e4b\u95f4\u5207\u6362\u3002\u8fd9\u91cc\u4ee5\u5b89\u88c5",Object(l.mdx)("a",Object.assign({parentName:"li"},{href:"https://repo.continuum.io/miniconda/Miniconda2-latest-Windows-x86_64.exe"}),"\u81ea\u5e26Python 2.7\u7684\u7248\u672c"),"\u4e3a\u4f8b\u3002\u4e5f\u662f\u8003\u8651\u5230linux\u4e0b\u7cfb\u7edf\u81ea\u5e26\u4e5f\u662f2.x\u7248\u672c\u7684\u3002")),Object(l.mdx)("h2",{id:"\u57fa\u672c\u4f7f\u7528\uff0c\u4ee5\u521b\u5efaflask\u9879\u76ee\u4e3a\u4f8b"},"\u57fa\u672c\u4f7f\u7528\uff0c\u4ee5\u521b\u5efaflask\u9879\u76ee\u4e3a\u4f8b"),Object(l.mdx)("ul",null,Object(l.mdx)("li",{parentName:"ul"},Object(l.mdx)("p",{parentName:"li"},"\u521b\u5efa\u73af\u5883\uff0c\u5e76\u5b89\u88c5flask\u5305"),Object(l.mdx)("pre",{parentName:"li"},Object(l.mdx)("code",Object.assign({parentName:"pre"},{className:"language-bash","data-language":"bash","data-highlighted-line-numbers":"",dangerouslySetInnerHTML:{__html:'<span class="token comment">#conda create --name <env\u540d\u79f0> <\u8981\u5b89\u88c5\u7684\u5305(\u53ef\u9009),\u7a7a\u683c\u5206\u9694> </span>\n\n<span class="token comment">#\u57fa\u4e8e\u5f53\u524d\u5168\u5c40python\u7248\u672c\u4ea7\u751f\u65b0\u73af\u5883\uff0c\u8fd9\u8ddfvirtualenv\u7c7b\u4f3c</span>\nconda create --name my_app flask\n\n<span class="token comment">#\u6307\u5b9apython\u7248\u672c\u4e3a3.x\u7cfb\u5217\uff0cconda\u81ea\u52a8\u4e0b\u8f7d\u5e76\u5b89\u88c5python3\u7684\u6700\u65b0\u7248\u672c\uff0c\u8fd9\u70b9\u8ddfpyenv\u7c7b\u4f3c</span>\nconda create --name <span class="token assign-left variable">python</span><span class="token operator">=</span><span class="token number">3</span> my_app flask\n'}})))),Object(l.mdx)("li",{parentName:"ul"},Object(l.mdx)("p",{parentName:"li"},"\u6fc0\u6d3b/\u9000\u51fa\u8be5\u73af\u5883"),Object(l.mdx)("pre",{parentName:"li"},Object(l.mdx)("code",Object.assign({parentName:"pre"},{className:"language-bash","data-language":"bash","data-highlighted-line-numbers":"",dangerouslySetInnerHTML:{__html:"activate my_app\ndeactivate my_app\n"}})))),Object(l.mdx)("li",{parentName:"ul"},Object(l.mdx)("p",{parentName:"li"},"\u67e5\u770b\u6240\u6709\u7684\u73af\u5883"),Object(l.mdx)("pre",{parentName:"li"},Object(l.mdx)("code",Object.assign({parentName:"pre"},{className:"language-bash","data-language":"bash","data-highlighted-line-numbers":"",dangerouslySetInnerHTML:{__html:'conda <span class="token function">env</span> list\n'}})))),Object(l.mdx)("li",{parentName:"ul"},Object(l.mdx)("p",{parentName:"li"},"\u5220\u9664\u67d0\u73af\u5883"),Object(l.mdx)("pre",{parentName:"li"},Object(l.mdx)("code",Object.assign({parentName:"pre"},{className:"language-bash","data-language":"bash","data-highlighted-line-numbers":"",dangerouslySetInnerHTML:{__html:"conda remove --name my_app --all\n"}}))))),Object(l.mdx)("h2",{id:"\u517c\u5bb9\u6027\u63d0\u793a"},"\u517c\u5bb9\u6027\u63d0\u793a"),Object(l.mdx)("ul",null,Object(l.mdx)("li",{parentName:"ul"},"\u5047\u5982\u5f53\u524dchcp\u662futf-8\uff0c\u90a3\u4e48\u5728python2.7\u4e0b\u4f1a\u62a5\u9519 ",Object(l.mdx)("inlineCode",{parentName:"li"},"LookupError: unknown encoding: cp65001")),Object(l.mdx)("li",{parentName:"ul"},"\u89e3\u51b3\u65b9\u6cd5\u662f\u5728cmder\u7684\u73af\u5883\u53d8\u91cf\u52a0\u5165\u4e00\u6761",Object(l.mdx)("inlineCode",{parentName:"li"},"set PYTHONIOENCODING=utf-8"))))}i.isMDXComponent=!0;var s=function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];return[{id:"\u9002\u7528\u73af\u5883",level:2,title:"\u9002\u7528\u73af\u5883",children:[]},{id:"\u5b89\u88c5conda",level:2,title:"\u5b89\u88c5conda",children:[]},{id:"\u57fa\u672c\u4f7f\u7528\uff0c\u4ee5\u521b\u5efaflask\u9879\u76ee\u4e3a\u4f8b",level:2,title:"\u57fa\u672c\u4f7f\u7528\uff0c\u4ee5\u521b\u5efaflask\u9879\u76ee\u4e3a\u4f8b",children:[]},{id:"\u517c\u5bb9\u6027\u63d0\u793a",level:2,title:"\u517c\u5bb9\u6027\u63d0\u793a",children:[]}]},r={}}}]); 2//# sourceMappingURL=104.01c660f3.chunk.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.