[{"data":1,"prerenderedAt":141},["ShallowReactive",2],{"content-query-GRCxamKOj6":3},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"tags":10,"body":11,"_type":135,"_id":136,"_source":137,"_file":138,"_stem":139,"_extension":140},"/tutorials/conda-create-environment","tutorials",false,"","Creating a Conda environment","To create a conda environment using a specific Python version, run:","python",{"type":12,"children":13,"toc":132},"root",[14,21,66,95,108,126],{"type":15,"tag":16,"props":17,"children":18},"element","p",{},[19],{"type":20,"value":9},"text",{"type":15,"tag":22,"props":23,"children":27},"pre",{"className":24,"code":25,"language":26,"meta":7,"style":7},"language-bash shiki shiki-themes github-light monokai monokai github-light monokai","conda create python=3.xx --prefix my-python-env\n","bash",[28],{"type":15,"tag":29,"props":30,"children":31},"code",{"__ignoreMap":7},[32],{"type":15,"tag":33,"props":34,"children":37},"span",{"class":35,"line":36},"line",1,[38,44,50,55,61],{"type":15,"tag":33,"props":39,"children":41},{"style":40},"--shiki-default:#6F42C1;--shiki-dark-mode:#A6E22E;--shiki-sky-dark-mode:#A6E22E;--shiki-light-mode:#6F42C1;--shiki-blue-mode:#A6E22E",[42],{"type":20,"value":43},"conda",{"type":15,"tag":33,"props":45,"children":47},{"style":46},"--shiki-default:#032F62;--shiki-dark-mode:#E6DB74;--shiki-sky-dark-mode:#E6DB74;--shiki-light-mode:#032F62;--shiki-blue-mode:#E6DB74",[48],{"type":20,"value":49}," create",{"type":15,"tag":33,"props":51,"children":52},{"style":46},[53],{"type":20,"value":54}," python=3.xx",{"type":15,"tag":33,"props":56,"children":58},{"style":57},"--shiki-default:#005CC5;--shiki-dark-mode:#AE81FF;--shiki-sky-dark-mode:#AE81FF;--shiki-light-mode:#005CC5;--shiki-blue-mode:#AE81FF",[59],{"type":20,"value":60}," --prefix",{"type":15,"tag":33,"props":62,"children":63},{"style":46},[64],{"type":20,"value":65}," my-python-env\n",{"type":15,"tag":16,"props":67,"children":68},{},[69,71,77,79,85,87,93],{"type":20,"value":70},"Replace ",{"type":15,"tag":29,"props":72,"children":74},{"className":73},[],[75],{"type":20,"value":76},"python=3.xx",{"type":20,"value":78}," with the desired Python version. E.g.: ",{"type":15,"tag":29,"props":80,"children":82},{"className":81},[],[83],{"type":20,"value":84},"python=3.11",{"type":20,"value":86},". Use the ",{"type":15,"tag":29,"props":88,"children":90},{"className":89},[],[91],{"type":20,"value":92},"prefix",{"type":20,"value":94}," argument to give your environment a name.",{"type":15,"tag":16,"props":96,"children":97},{},[98,100,106],{"type":20,"value":99},"Finally, activate your environment with ",{"type":15,"tag":29,"props":101,"children":103},{"className":102},[],[104],{"type":20,"value":105},"conda activate my-python-env",{"type":20,"value":107},".",{"type":15,"tag":16,"props":109,"children":110},{},[111,117,119,125],{"type":15,"tag":112,"props":113,"children":114},"em",{},[115],{"type":20,"value":116},"Note",{"type":20,"value":118},": If the environment is not found by its prefix, you may have to specify the absolute path to it when activating. E.g.: ",{"type":15,"tag":29,"props":120,"children":122},{"className":121},[],[123],{"type":20,"value":124},"conda activate /home/\u003Cusername>/project/my-python-env",{"type":20,"value":107},{"type":15,"tag":127,"props":128,"children":129},"style",{},[130],{"type":20,"value":131},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark-mode .shiki span {color: var(--shiki-dark-mode);background: var(--shiki-dark-mode-bg);font-style: var(--shiki-dark-mode-font-style);font-weight: var(--shiki-dark-mode-font-weight);text-decoration: var(--shiki-dark-mode-text-decoration);}html.dark-mode .shiki span {color: var(--shiki-dark-mode);background: var(--shiki-dark-mode-bg);font-style: var(--shiki-dark-mode-font-style);font-weight: var(--shiki-dark-mode-font-weight);text-decoration: var(--shiki-dark-mode-text-decoration);}html .sky-dark-mode .shiki span {color: var(--shiki-sky-dark-mode);background: var(--shiki-sky-dark-mode-bg);font-style: var(--shiki-sky-dark-mode-font-style);font-weight: var(--shiki-sky-dark-mode-font-weight);text-decoration: var(--shiki-sky-dark-mode-text-decoration);}html.sky-dark-mode .shiki span {color: var(--shiki-sky-dark-mode);background: var(--shiki-sky-dark-mode-bg);font-style: var(--shiki-sky-dark-mode-font-style);font-weight: var(--shiki-sky-dark-mode-font-weight);text-decoration: var(--shiki-sky-dark-mode-text-decoration);}html .light-mode .shiki span {color: var(--shiki-light-mode);background: var(--shiki-light-mode-bg);font-style: var(--shiki-light-mode-font-style);font-weight: var(--shiki-light-mode-font-weight);text-decoration: var(--shiki-light-mode-text-decoration);}html.light-mode .shiki span {color: var(--shiki-light-mode);background: var(--shiki-light-mode-bg);font-style: var(--shiki-light-mode-font-style);font-weight: var(--shiki-light-mode-font-weight);text-decoration: var(--shiki-light-mode-text-decoration);}html .blue-mode .shiki span {color: var(--shiki-blue-mode);background: var(--shiki-blue-mode-bg);font-style: var(--shiki-blue-mode-font-style);font-weight: var(--shiki-blue-mode-font-weight);text-decoration: var(--shiki-blue-mode-text-decoration);}html.blue-mode .shiki span {color: var(--shiki-blue-mode);background: var(--shiki-blue-mode-bg);font-style: var(--shiki-blue-mode-font-style);font-weight: var(--shiki-blue-mode-font-weight);text-decoration: var(--shiki-blue-mode-text-decoration);}",{"title":7,"searchDepth":133,"depth":133,"links":134},2,[],"markdown","content:tutorials:conda-create-environment.md","content","tutorials/conda-create-environment.md","tutorials/conda-create-environment","md",1793934184833]