Vertex AI Workbench 인스턴스 이름 옆에 있는 JupyterLab 열기를 클릭합니다.
Vertex AI Workbench 인스턴스가 JupyterLab을 엽니다.
conda 커널 수정
Vertex AI Workbench 인스턴스에는 PyTorch 및 TensorFlow와 같은 프레임워크가 사전 설치되어 있습니다. 다른 버전이 필요한 경우 관련 conda 환경에서 pip를 사용하여 라이브러리를 수정할 수 있습니다.
예를 들어 PyTorch를 업그레이드하려면 다음 명령어를 실행합니다.
# Check the name of the conda environment for PyTorchcondaenvlist# Activate the environment for PyTorchcondaactivatepytorch# Display the PyTorch versionpython-c"import torch; print(torch.__version__)"# Make sure to use pip from the conda environment for PyTorch# This should be `/opt/conda/envs/pytorch/bin/pip`whichpip# Upgrade PyTorchpipinstall--upgradetorch
conda 커널 삭제
일부 conda 패키지는 설치될 때 환경에 기본 커널을 추가합니다. 예를 들어 R을 설치할 때 conda가 python3 커널을 추가할 수도 있습니다. 이로 인해 환경에서 커널이 중복될 수 있습니다. 중복된 커널을 방지하려면 기본 커널을 삭제한 후 같은 이름으로 새 커널을 만듭니다.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-09-04(UTC)"],[],[],null,["# Manage the conda environment in your Vertex AI Workbench instance\n\nManage your conda environment\n=============================\n\nThis page describes how to manage a conda environment in your\nVertex AI Workbench instance.\n\nOverview\n--------\n\nIf you've added a conda environment to your Vertex AI Workbench instance,\nit appears as a\n[kernel](https://jupyterlab.readthedocs.io/en/stable/user/documents_kernels.html)\nin your instance's JupyterLab interface.\n\nYou might have added a conda environment to your instance to use a kernel\nthat isn't available in a default Vertex AI Workbench instance.\nThis page describes how to modify and delete that kernel.\n\nOpen JupyterLab\n---------------\n\n1. In the Google Cloud console, go to the **Instances** page.\n\n [Go to Instances](https://console.cloud.google.com/vertex-ai/workbench/instances)\n2. Next to your Vertex AI Workbench instance's name,\n click **Open JupyterLab**.\n\n Your Vertex AI Workbench instance opens JupyterLab.\n\nModify a conda kernel\n---------------------\n\nVertex AI Workbench instances come with pre-installed frameworks such as PyTorch\nand TensorFlow. If you need a different version, you can modify the\nlibraries by using pip in the relevant conda environment.\n\nFor example, if you want to upgrade PyTorch: \n\n```python\n# Check the name of the conda environment for PyTorch\nconda env list\n\n# Activate the environment for PyTorch\nconda activate pytorch\n\n# Display the PyTorch version\npython -c \"import torch; print(torch.__version__)\"\n\n# Make sure to use pip from the conda environment for PyTorch\n# This should be `/opt/conda/envs/pytorch/bin/pip`\nwhich pip\n\n# Upgrade PyTorch\npip install --upgrade torch\n```\n\nDelete a conda kernel\n---------------------\n\nSome conda packages add default kernels to your environment when the packages\nare installed. For example, when you install R, conda might also add a\n`python3` kernel. This can cause a duplication of kernels in your\nenvironment. To avoid duplicated kernels, delete the default kernel\nbefore you create a new kernel with the same name. \n\n```scdoc\nrm -rf /opt/conda/envs/CONDA_ENVIRONMENT_NAME/share/jupyter/kernels/python3\n```\n\nTroubleshoot\n------------\n\nTo diagnose and resolve issues related to managing a conda environment in\nyour Vertex AI Workbench instance, see [Troubleshooting\nVertex AI Workbench](/vertex-ai/docs/general/troubleshooting-workbench#instances).\n\nWhat's next\n-----------\n\n- Learn more about [conda](https://docs.conda.io/en/latest/)."]]