bake, bakefile env, and bakefile export reinvoke under the bakefile’s Python. Check which interpreter each command uses with bakefile which and bakefile find-python.
bake, bakefile env, and bakefile export reinvoke themselves under the bakefile’s Python. If a module is importable in your shell but not from a task, check which interpreter each command uses:
{"docsConfig":{"theme":"mint","$schema":"https://www.mintlify.com/docs.json","name":"bakefile","description":"An OOP task runner. Write tasks once, reuse everywhere. Like a Makefile, but reusable and in Python.","colors":{"primary":"#4F8CC8","light":"#7AB0DE","dark":"#3B6FA5"},"logo":{"light":"https://mintcdn.com/bakefile/wxh2SUmEC1OnK5Pg/img/brand/bakefile-lockup.svg?fit=max\u0026auto=format\u0026n=wxh2SUmEC1OnK5Pg\u0026q=85\u0026s=c375968d7ee42171331125130dc2bcb8","dark":"https://mintcdn.com/bakefile/wxh2SUmEC1OnK5Pg/img/brand/bakefile-lockup-dark.svg?fit=max\u0026auto=format\u0026n=wxh2SUmEC1OnK5Pg\u0026q=85\u0026s=fc723724b605d336f1b154e274f65b14"},"favicon":"https://mintcdn.com/bakefile/wxh2SUmEC1OnK5Pg/img/brand/favicon.ico?fit=max\u0026auto=format\u0026n=wxh2SUmEC1OnK5Pg\u0026q=85\u0026s=59c1d991bf48e551f076a293c20cfd39","background":{"color":{"light":"#F1F7FC","dark":"#152A40"}},"navbar":{"links":[{"href":"https://github.com/wislertt/bakefile","label":"GitHub"}]},"footer":{"socials":{"github":"https://github.com/wislertt/bakefile"},"links":[{"header":"Resources","items":[{"label":"PyPI","href":"https://pypi.org/project/bakefile"},{"label":"Examples","href":"/examples/simple"},{"label":"Made by Wisaroot Lertthaweedech","href":"https://wisl.dev"}]}]},"seo":{"metatags":{"canonical":"https://bakefile.wisl.dev","og:image":"https://bakefile.wisl.dev/img/brand/og-card-light.png","twitter:card":"summary_large_image"},"organization":{"url":"https://bakefile.wisl.dev","sameAs":["https://github.com/wislertt/bakefile","https://pypi.org/project/bakefile/","https://wisl.dev"]}},"styling":{"codeblocks":{"theme":{"light":"github-light","dark":"github-dark"}},"latex":false},"metadata":{"timestamp":true},"markdown":{"instructions":["bakefile is a Python task runner with two CLIs: bake runs tasks from bakefile.py, bakefile manages the project. It is not a service or platform.","Tasks are methods on Bakebook classes in bakefile.py, decorated with @command. Subprocesses run through self.ctx.run().","Examples are backed by tests; copy them verbatim."]},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"bakefile","hasAudioNarration":false,"actualSubdomain":"bakefile","customDomains":["bakefile.wisl.dev"],"gitSource":{"type":"github","owner":"wislertt","repo":"bakefile","deployBranch":"main","contentDirectory":"docs","isPrivate":false,"mountPath":"","label":""},"chroma":{"latestBuiltDeploymentHistoryId":"6acee4eb4171776d4cc949eb","collectionId":"873e7a75-332f-4161-946c-b9a1d9d01f36","liveDeploymentHistoryId":"6acee4eb4171776d4cc949eb","schemaVersion":"v3"},"entitlements":{},"buildId":"6acee4eb4171776d4cc949eb","clientVersion":"0.0.4006","searchFilterCounts":[{"language":"default","tag":"Troubleshooting","count":8},{"language":"default","tag":"Concepts","count":5},{"language":"default","tag":"bakelib","count":4},{"language":"default","tag":"Getting Started","count":3},{"language":"default","tag":"CLI Reference","count":2},{"language":"default","tag":"Examples","count":2},{"language":"default","tag":"Usage","count":2},{"language":"default","tag":"Welcome","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"custom.css","content":":root{--sd-ink:#2e1b0c;--sd-cream:#ddb283;--sd-chip:#7e5232}body{color:var(--sd-ink)}html.dark body,html[data-theme=dark] body{color:var(--sd-cream)}li,p,td,th{color:inherit}html.dark .sd-hero-light{display:none}html:not(.dark) .sd-hero-dark{display:none}.sd-preview{border:1px solid #3b6fa5;border-radius:10px}.sd-badges{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:flex-start;margin:0 0 16px;padding:0}.sd-badges a,.sd-badges a:hover,.sd-badges a:visited{display:inline-flex;flex:0 0 auto;line-height:0;height:auto!important;max-height:24px;padding:0!important;margin:0!important;text-decoration:none!important;border-bottom:none!important;background:0 0!important;background-image:none!important}.sd-badges img{height:20px;width:auto;max-width:none;display:block;margin:0!important}"}],"page":{"pagePath":"troubleshooting/wrong-python","slug":"/troubleshooting/wrong-python","pageMetadata":{"title":"Tasks use the wrong Python interpreter","sidebarTitle":"Wrong Python","description":"bake, bakefile env, and bakefile export reinvoke under the bakefile's Python. Check which interpreter each command uses with bakefile which and bakefile find-python.","href":"/troubleshooting/wrong-python"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"bake, bakefile env, and bakefile export reinvoke under the bakefile’s Python. Check which interpreter each command uses with bakefile which and bakefile find-python.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[_jsx(_components.code,{children:`bake`}),`, `,_jsx(_components.code,{children:`bakefile env`}),`, and `,_jsx(_components.code,{children:`bakefile export`}),` reinvoke themselves under the bakefile’s Python. If a module is importable in your shell but not from a task, check which interpreter each command uses:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`bakefile`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` which`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`bakefile`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` find-python`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`See the `,_jsx(_components.a,{href:`/cli/bakefile`,children:`bakefile CLI`}),` for the full breakdown.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":{"theme":{"light":"github-light","dark":"github-dark"}},"config":{},"pageMetadata":{"title":"Tasks use the wrong Python interpreter","sidebarTitle":"Wrong Python","description":"bake, bakefile env, and bakefile export reinvoke under the bakefile's Python. Check which interpreter each command uses with bakefile which and bakefile find-python.","href":"/troubleshooting/wrong-python"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"subdomain":"bakefile","siteName":"bakefile","title":"Tasks use the wrong Python interpreter - bakefile","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-06T00:07:18.439Z","originalFileLocation":"troubleshooting/wrong-python.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"bake, bakefile env, and bakefile export reinvoke under the bakefile\u0026#x27;s Python. Check which interpreter each command uses with bakefile which and bakefile find-python.\">\u003cmeta data-mint-head name=\"application-name\" content=\"bakefile\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/bakefile/9AMtHJXYLd8Z5J89/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/bakefile/9AMtHJXYLd8Z5J89/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/bakefile/9AMtHJXYLd8Z5J89/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/bakefile/9AMtHJXYLd8Z5J89/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/bakefile/9AMtHJXYLd8Z5J89/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/bakefile/9AMtHJXYLd8Z5J89/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/bakefile/9AMtHJXYLd8Z5J89/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/bakefile/9AMtHJXYLd8Z5J89/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/bakefile/9AMtHJXYLd8Z5J89/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Tasks use the wrong Python interpreter - bakefile\">\u003cmeta data-mint-head property=\"og:description\" content=\"bake, bakefile env, and bakefile export reinvoke under the bakefile\u0026#x27;s Python. Check which interpreter each command uses with bakefile which and bakefile find-python.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"bakefile\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://bakefile.wisl.dev/troubleshooting/wrong-python\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://bakefile.wisl.dev/img/brand/og-card-light.png\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Tasks use the wrong Python interpreter - bakefile\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"bake, bakefile env, and bakefile export reinvoke under the bakefile\u0026#x27;s Python. Check which interpreter each command uses with bakefile which and bakefile find-python.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://bakefile.wisl.dev/img/brand/og-card-light.png\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/bakefile/9AMtHJXYLd8Z5J89/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"bakefile\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#4F8CC8\">\u003clink data-mint-head rel=\"canonical\" href=\"https://bakefile.wisl.dev/troubleshooting/wrong-python\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/troubleshooting/wrong-python.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://bakefile.wisl.dev/#organization\",\"name\":\"bakefile\",\"url\":\"https://bakefile.wisl.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/bakefile/wxh2SUmEC1OnK5Pg/img/brand/bakefile-lockup.svg?fit=max\u0026auto=format\u0026n=wxh2SUmEC1OnK5Pg\u0026q=85\u0026s=c375968d7ee42171331125130dc2bcb8\"},\"sameAs\":[\"https://github.com/wislertt/bakefile\",\"https://pypi.org/project/bakefile/\",\"https://wisl.dev\"]},{\"@type\":\"WebSite\",\"@id\":\"https://bakefile.wisl.dev#website\",\"name\":\"bakefile\",\"url\":\"https://bakefile.wisl.dev\",\"publisher\":{\"@id\":\"https://bakefile.wisl.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://bakefile.wisl.dev/troubleshooting/wrong-python#webpage\",\"url\":\"https://bakefile.wisl.dev/troubleshooting/wrong-python\",\"name\":\"Tasks use the wrong Python interpreter\",\"description\":\"bake, bakefile env, and bakefile export reinvoke under the bakefile's Python. Check which interpreter each command uses with bakefile which and bakefile find-python.\",\"dateModified\":\"2026-09-06T00:07:18.439Z\",\"isPartOf\":{\"@id\":\"https://bakefile.wisl.dev#website\"},\"breadcrumb\":{\"@id\":\"https://bakefile.wisl.dev/troubleshooting/wrong-python#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://bakefile.wisl.dev/troubleshooting/wrong-python#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Troubleshooting\",\"item\":\"https://bakefile.wisl.dev/troubleshooting/index\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tasks use the wrong Python interpreter\",\"item\":\"https://bakefile.wisl.dev/troubleshooting/wrong-python\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://bakefile.wisl.dev/troubleshooting/wrong-python#article\",\"headline\":\"Tasks use the wrong Python interpreter\",\"name\":\"Tasks use the wrong Python interpreter\",\"description\":\"bake, bakefile env, and bakefile export reinvoke under the bakefile's Python. Check which interpreter each command uses with bakefile which and bakefile find-python.\",\"url\":\"https://bakefile.wisl.dev/troubleshooting/wrong-python\",\"mainEntityOfPage\":{\"@id\":\"https://bakefile.wisl.dev/troubleshooting/wrong-python#webpage\"},\"image\":\"https://bakefile.wisl.dev/img/brand/og-card-light.png\",\"dateModified\":\"2026-09-06T00:07:18.439Z\",\"publisher\":{\"@id\":\"https://bakefile.wisl.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://bakefile.wisl.dev#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"bakefile\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"bakefile","nav":{"global":null,"groups":[{"group":"Welcome","pages":[{"title":"Python task runner, Makefile alternative","sidebarTitle":"bakefile","href":"/index"}]},{"group":"Getting Started","pages":[{"title":"Install bakefile","href":"/getting-started/installation"},{"title":"Quickstart","href":"/getting-started/quickstart"},{"title":"Why bakefile vs Make, Just, Task, mise","sidebarTitle":"Why bakefile","href":"/getting-started/why-bakefile"}]},{"group":"Concepts","pages":[{"title":"Bakebook","href":"/concepts/bakebook"},{"title":"Reuse tasks across projects","sidebarTitle":"Sharing tasks","href":"/concepts/sharing-tasks"},{"title":"Commands","href":"/concepts/commands"},{"title":"Context","href":"/concepts/context"},{"title":"PEP 723 Support","href":"/concepts/pep723"}]},{"group":"Usage","pages":[{"title":"Logging and Console Output","href":"/usage/logging"},{"title":"Settings","href":"/usage/settings"}]},{"group":"CLI Reference","pages":[{"title":"bake CLI","href":"/cli/bake"},{"title":"bakefile CLI","href":"/cli/bakefile"}]},{"group":"bakelib","pages":[{"title":"Spaces","href":"/bakelib/spaces"},{"title":"Environments","href":"/bakelib/environments"},{"title":"Refreshable Cache","href":"/bakelib/cache"},{"title":"Secrets","href":"/bakelib/secrets"}]},{"group":"Examples","pages":[{"title":"Simple","href":"/examples/simple"},{"title":"Python Package","href":"/examples/python-package"}]},{"group":"Troubleshooting","pages":[{"title":"Common errors and fixes","href":"/troubleshooting/index"},{"title":"bake: command not found","sidebarTitle":"Command not found","href":"/troubleshooting/command-not-found"},{"title":"BakebookError: No 'bakebook' found","sidebarTitle":"Bakebook not found","href":"/troubleshooting/bakebook-not-found"},{"title":"Bakebook must be a Bakebook, got Typer","sidebarTitle":"Wrong bakebook type","href":"/troubleshooting/wrong-bakebook-type"},{"title":"Directory not found and file name errors","sidebarTitle":"File name errors","href":"/troubleshooting/file-name-errors"},{"title":"Failed to load bakebook after dependency sync","sidebarTitle":"Import errors","href":"/troubleshooting/import-errors"},{"title":"ImportError at startup from a dependency","sidebarTitle":"Dependency import errors","description":"bake or bakefile crashes with an ImportError before doing anything, usually after a dependency released a breaking change. Upgrade bakefile, or reinstall with the locked extra.","href":"/troubleshooting/dependency-import-error"},{"title":"Tasks use the wrong Python interpreter","sidebarTitle":"Wrong Python","href":"/troubleshooting/wrong-python"}]}]},"title":"Tasks use the wrong Python interpreter - bakefile","buildId":"dpl_2xiSHD9XEvLsPGPcfoMtkLTB3dy9","deploymentId":"dpl_2xiSHD9XEvLsPGPcfoMtkLTB3dy9","dynamics":[],"chunks":[]}