In GPUhub, all data, including installed dependencies, is retained after shutdown. There is no need to reinstall them upon restart.
If you wish to reuse the dependency environment when renting other hosts, you can try to save all data on the system disk as an image. Please refer to the documentation on saving and loading Images.
# Create a virtual environment named my-env with Python version 3.7:conda create -n my-env python=3.7# Update the environment variables in .bashrc:conda init bash && source /root/.bashrc# Activate the created virtual environment my-env:conda activate my-env
# PyTorch: Find the appropriate version from Previous PyTorch Versions. For example:conda install pytorch==1.9.0 torchvision==0.10.0 torchaudio==0.9.0 cudatoolkit=11.3 -c pytorch -c conda-forge# TensorFlow: Find the corresponding version link from Install TensorFlow with pip. For example:pip install https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-2.6.0-cp38-cp38-manylinux2010_x86_64.whl
# Using pip: For example,pip install opencv-python scipy numpy Pillow# Using conda: For example,conda install numpy# Searching for package names:pip search xxxx conda search xxxx# Trick to view available versions if unsure: Write a random version number (e.g., 9.9), # and pip will list all available versions in the error message:pip install xxx=9.9
# Example for installing zip:apt-get update # Only needs to be run once, not every time apt-get install -y zip# Searching for package names:apt-get update # Only needs to be run once, not every time apt-cache search xxxxx
For the installation of CUDA and other software, please refer to the documentation.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Mint Starter Kit","description":"GPUhub Documentation","colors":{"primary":"#964CEF","light":"#C493FF","dark":"#6F27C5"},"logo":{"light":"https://mintcdn.com/gpuhub/wL6E4LFUzA6FP7VX/logo/light.svg?fit=max\u0026auto=format\u0026n=wL6E4LFUzA6FP7VX\u0026q=85\u0026s=aac94265738621a43d2d2a5afabe6f38","dark":"https://mintcdn.com/gpuhub/wL6E4LFUzA6FP7VX/logo/dark.svg?fit=max\u0026auto=format\u0026n=wL6E4LFUzA6FP7VX\u0026q=85\u0026s=c7adcf4558f6b6c73111f89fbcb71cb2"},"favicon":"https://mintcdn.com/gpuhub/swpOJzF6Pn2RHDvu/favicon.svg?fit=max\u0026auto=format\u0026n=swpOJzF6Pn2RHDvu\u0026q=85\u0026s=506e325d2301a7ffe9c2336439347e47","appearance":{"default":"system"},"navbar":{"links":[{"href":"mailto:support@gpuhub.com","label":"Support"}],"primary":{"type":"button","label":"Console","href":"https://gpuhub.com/"}},"footer":{"socials":{"x":"https://x.com/gpuhubnews","github":"https://github.com/gpuhub-source","linkedin":"https://www.linkedin.com/company/106417537","discord":"https://discord.gg/PVdwkynM75","youtube":"https://www.youtube.com/channel/UC2qUAYW-gmjBjs_DAZbpGlg"}},"search":{"prompt":"Select the GPU suits your purpose and scenario"},"integrations":{"ga4":{"measurementId":"G-KDSJ905XX7"}},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Discord","icon":"discord","href":"https://discord.gg/PVdwkynM75"},{"anchor":"Telegram","icon":"telegram","href":"https://t.me/+x1igBQ49Z0NkN2E1"},{"anchor":"X","icon":"x-twitter","href":"https://x.com/hub_gpu"},{"anchor":"YouTube","icon":"youtube","href":"https://www.youtube.com/channel/UC2qUAYW-gmjBjs_DAZbpGlg"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"gpuhub","hasAudioNarration":false,"actualSubdomain":"gpuhub","customDomains":["docs.gpuhub.com"],"gitSource":{"type":"github","owner":"narwal99","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae1c36d8a46f6fe5a22603e","clientVersion":"0.0.4094","searchFilterCounts":[{"language":"default","tag":"AI Gateway","count":22},{"language":"default","tag":"Guides","count":20},{"language":"default","tag":"Best Practices","count":19},{"language":"default","tag":"LLMs","count":15},{"language":"default","tag":"Instance","count":13},{"language":"default","tag":"Elastic Deployment","count":9},{"language":"default","tag":"FAQ","count":8},{"language":"default","tag":"Frequently Asked Question","count":8},{"language":"default","tag":"Terms of Service","count":8},{"language":"default","tag":"Tools \u0026 Environment","count":7}]},"assistantConfig":{},"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":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","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":"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":"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":"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":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","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":"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":"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":"turbopuffer-dual-write","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},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":".max-w-8xl{max-width:100%!important}.pl-4{text-transform:uppercase}.eyebrow{text-transform:uppercase}"}],"page":{"pagePath":"environment/dependency-installation","slug":"/environment/dependency-installation","pageMetadata":{"title":"Dependency Installation","description":"In GPUhub, all data, including installed dependencies, is retained after shutdown. There is no need to reinstall them upon restart.","href":"/environment/dependency-installation"},"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: \"In GPUhub, all data, including installed dependencies, is retained after shutdown. There is no need to reinstall them upon restart.\"\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,Heading}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`If you wish to reuse the dependency environment when renting other hosts, you can try to save all data on the system disk as an image. Please refer to the `,_jsx(_components.a,{href:`/environment/image`,children:`documentation on saving and loading Images`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`install-other-python-versions`,children:`Install Other Python Versions`}),`\n`,_jsx(_components.p,{children:`All images come with Miniconda pre-installed.`}),`\n`,_jsx(CodeBlock,{filename:`bash`,numberOfLines:`6`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Create a virtual environment named my-env with Python version 3.7:`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`conda create -n my-env `}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`python`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=3.7`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Update the environment variables in .bashrc:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`conda init bash \u0026\u0026 source /root/.bashrc`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Activate the created virtual environment my-env:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`conda activate my-env`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`install-other-frameworks`,children:`Install Other Frameworks`}),`\n`,_jsx(CodeBlock,{filename:`bash`,numberOfLines:`5`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# PyTorch: Find the appropriate version from Previous PyTorch Versions. For example:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`conda install pytorch==1.9.0 torchvision==0.10.0 torchaudio==0.9.0 cudatoolkit=11.3 -c pytorch -c conda-forge`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# TensorFlow: Find the corresponding version link from Install TensorFlow with pip. For example:`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`pip`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` install https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-2.6.0-cp38-cp38-manylinux2010_x86_64.whl`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`install-python-dependencies`,children:`Install Python Dependencies`}),`\n`,_jsx(CodeBlock,{filename:`bash`,numberOfLines:`10`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`10`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Using pip: For example,`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`pip`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` install opencv-python scipy numpy Pillow`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Using conda: For example,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`conda install numpy`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Searching for package names:`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`pip`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` search xxxx `})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`conda search xxxx`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Trick to view available versions if unsure: Write a random version number (e.g., 9.9), `})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# and pip will list all available versions in the error message:`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`pip`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` install xxx=9.9`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`install-system-dependencies`,children:`Install System Dependencies`}),`\n`,_jsx(CodeBlock,{filename:`bash`,numberOfLines:`6`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Example for installing zip:`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`apt-get update `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Only needs to be run once, not every time `})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`apt-get install -y zip`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Searching for package names:`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`apt-get update `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Only needs to be run once, not every time `})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`apt-cache search xxxxx`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`install-cuda-and-other-dependencies`,children:`Install CUDA and Other Dependencies`}),`\n`,_jsxs(_components.p,{children:[`For the installation of CUDA and other software, please refer to the `,_jsx(_components.a,{href:`/environment/cuda-cudnn`,children:`documentation`}),`.`]})]})}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":{"config":{},"pageMetadata":{"title":"Dependency Installation","description":"In GPUhub, all data, including installed dependencies, is retained after shutdown. There is no need to reinstall them upon restart.","href":"/environment/dependency-installation"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Install Other Python Versions","slug":"install-other-python-versions","depth":2,"children":[]},{"title":"Install Other Frameworks","slug":"install-other-frameworks","depth":2,"children":[]},{"title":"Install Python Dependencies","slug":"install-python-dependencies","depth":2,"children":[]},{"title":"Install System Dependencies","slug":"install-system-dependencies","depth":2,"children":[]},{"title":"Install CUDA and Other Dependencies","slug":"install-cuda-and-other-dependencies","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/gpuhub/1b3d72170abac531/package/index.js"],"subdomain":"gpuhub","siteName":"Mint Starter Kit","title":"Dependency Installation - Mint Starter Kit","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2025-10-30T11:51:06.149Z","originalFileLocation":"environment/dependency-installation.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=\"In GPUhub, all data, including installed dependencies, is retained after shutdown. There is no need to reinstall them upon restart.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Mint Starter Kit\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/gpuhub/EOX3nZxGtcIJhBZL/_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/gpuhub/EOX3nZxGtcIJhBZL/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/gpuhub/EOX3nZxGtcIJhBZL/_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/gpuhub/EOX3nZxGtcIJhBZL/_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/gpuhub/EOX3nZxGtcIJhBZL/_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/gpuhub/EOX3nZxGtcIJhBZL/_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/gpuhub/EOX3nZxGtcIJhBZL/_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/gpuhub/EOX3nZxGtcIJhBZL/_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/gpuhub/EOX3nZxGtcIJhBZL/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Dependency Installation - Mint Starter Kit\">\u003cmeta data-mint-head property=\"og:description\" content=\"In GPUhub, all data, including installed dependencies, is retained after shutdown. There is no need to reinstall them upon restart.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Mint Starter Kit\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.gpuhub.com/environment/dependency-installation\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://gpuhub.mintlify.site/_mintlify/api/og/v2?division=Environment+Configuration\u0026amp;title=Dependency+Installation\u0026amp;description=In+GPUhub%2C+all+data%2C+including+installed+dependencies%2C+is+retained+after+shutdown.+There+is+no+need+to+reinstall+them+upon+restart.\u0026amp;theme=4706c09e24807f6fe5a1ec81\u0026amp;signature=3d910c640cdcad43be78c3fa1d212c24c35c2f37c9dd5d40542d9b429e0e1d6c\">\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=\"Dependency Installation - Mint Starter Kit\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"In GPUhub, all data, including installed dependencies, is retained after shutdown. There is no need to reinstall them upon restart.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://gpuhub.mintlify.site/_mintlify/api/og/v2?division=Environment+Configuration\u0026amp;title=Dependency+Installation\u0026amp;description=In+GPUhub%2C+all+data%2C+including+installed+dependencies%2C+is+retained+after+shutdown.+There+is+no+need+to+reinstall+them+upon+restart.\u0026amp;theme=4706c09e24807f6fe5a1ec81\u0026amp;signature=3d910c640cdcad43be78c3fa1d212c24c35c2f37c9dd5d40542d9b429e0e1d6c\">\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/gpuhub/EOX3nZxGtcIJhBZL/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Mint Starter Kit\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#964CEF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.gpuhub.com/environment/dependency-installation\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/environment/dependency-installation.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.gpuhub.com/#organization\",\"name\":\"Mint Starter Kit\",\"url\":\"https://docs.gpuhub.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/gpuhub/wL6E4LFUzA6FP7VX/logo/light.svg?fit=max\u0026auto=format\u0026n=wL6E4LFUzA6FP7VX\u0026q=85\u0026s=aac94265738621a43d2d2a5afabe6f38\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.gpuhub.com#website\",\"name\":\"Mint Starter Kit\",\"url\":\"https://docs.gpuhub.com\",\"publisher\":{\"@id\":\"https://docs.gpuhub.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.gpuhub.com/environment/dependency-installation#webpage\",\"url\":\"https://docs.gpuhub.com/environment/dependency-installation\",\"name\":\"Dependency Installation\",\"description\":\"In GPUhub, all data, including installed dependencies, is retained after shutdown. There is no need to reinstall them upon restart.\",\"dateModified\":\"2025-10-30T11:51:06.149Z\",\"isPartOf\":{\"@id\":\"https://docs.gpuhub.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.gpuhub.com/environment/dependency-installation#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.gpuhub.com/environment/dependency-installation#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Environment Configuration\",\"item\":\"https://docs.gpuhub.com/environment/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Dependency Installation\",\"item\":\"https://docs.gpuhub.com/environment/dependency-installation\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.gpuhub.com/environment/dependency-installation#article\",\"headline\":\"Dependency Installation\",\"name\":\"Dependency Installation\",\"description\":\"In GPUhub, all data, including installed dependencies, is retained after shutdown. There is no need to reinstall them upon restart.\",\"url\":\"https://docs.gpuhub.com/environment/dependency-installation\",\"mainEntityOfPage\":{\"@id\":\"https://docs.gpuhub.com/environment/dependency-installation#webpage\"},\"dateModified\":\"2025-10-30T11:51:06.149Z\",\"publisher\":{\"@id\":\"https://docs.gpuhub.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.gpuhub.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Mint Starter Kit\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Mint Starter Kit","nav":{"global":{"anchors":[{"anchor":"Discord","icon":"discord","href":"https://discord.gg/PVdwkynM75"},{"anchor":"Telegram","icon":"telegram","href":"https://t.me/+x1igBQ49Z0NkN2E1"},{"anchor":"X","icon":"x-twitter","href":"https://x.com/hub_gpu"},{"anchor":"YouTube","icon":"youtube","href":"https://www.youtube.com/channel/UC2qUAYW-gmjBjs_DAZbpGlg"}]},"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":"/introduction"}]},{"tab":"Instance","pages":[{"title":"Instance","href":"/container-instance/overview"}]},{"tab":"Data","pages":[{"title":"Data","href":"/data/local-data-disk"}]},{"tab":"Environment","groups":[{"group":"Environment Configuration","pages":[{"title":"Overview","description":"The platform provides pre-installed images with specific frameworks and versions. If these versions do not meet your needs, see below for methods to configure other versions.","href":"/environment/overview"},{"title":"Dependency Installation","href":"/environment/dependency-installation"},{"title":"Docker Image","description":"This document explains how to save, load, and share custom images on GPUhub, allowing users to replicate and reuse their configured environments across different instances.","href":"/environment/image"},{"title":"Python 3.X","href":"/environment/python3-x"},{"title":"CUDA / cuDNN","href":"/environment/cuda-cudnn"},{"title":"Miniconda","href":"/environment/miniconda"},{"title":"PyTorch for Blackwell","href":"/environment/pytorch280"}]}]},{"tab":"Best Practices","pages":[{"title":"Best Practices","href":"/best-practices/sub-account"}]},{"tab":"Elastic Deployment","pages":[{"title":"Elastic Deployment","href":"/elastic-deployment/elastic-deployment"}]},{"tab":"API","pages":[{"title":"API","href":"/api-reference/api-authentication"}]},{"tab":"AI Gateway","pages":[{"title":"AI Gateway","href":"/ai-gateway/ai-gateway"}]},{"tab":"FAQ","pages":[{"title":"FAQ","href":"/faqs/system-disk-space-insufficient"}]}]},"basePath":"","title":"Dependency Installation - Mint Starter Kit","buildId":"dpl_42LwxxU1kGN114H4XzwGYXa9ZDah","deploymentId":"dpl_42LwxxU1kGN114H4XzwGYXa9ZDah","dynamics":[],"chunks":[]}