Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2024/11/21 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Difficile à comprendre","hardToUnderstand","thumb-down"],["Informations ou exemple de code incorrects","incorrectInformationOrSampleCode","thumb-down"],["Il n'y a pas l'information/les exemples dont j'ai besoin","missingTheInformationSamplesINeed","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2024/11/21 (UTC)."],[],[],null,["# Quickstart: Google Cloud Pipeline Components\n\nThis quickstart guides you through the installation of the\nGoogle Cloud Pipeline Components (GCPC) SDK.\n\nInstall latest release\n----------------------\n\nUse the following command to install the Google Cloud SDK from the Python\nPackage Index (PyPI): \n\n pip install --upgrade google-cloud-pipeline-components\n\nImport a prebuilt component by using the Google Cloud SDK\n---------------------------------------------------------\n\nAfter you install the Google Cloud SDK, you can use it to import a\nprebuilt component.\n\nFor SDK reference information for supported components, see\nthe [Google Cloud SDK documentation](https://google-cloud-pipeline-components.readthedocs.io/en/google-cloud-pipeline-components-2.19.0/api/v1/index.html).\n\nFor example, you can use the following code to import and use the\n[Dataflow component](https://google-cloud-pipeline-components.readthedocs.io/en/google-cloud-pipeline-components-2.19.0/api/v1/dataflow.html) in a pipeline. \n\n from google_cloud_pipeline_components.v1.dataflow import DataflowPythonJobOp\n from kfp import dsl\n\n @dsl.pipeline(\n name=PIPELINE_NAME,\n description='Dataflow launch python pipeline'\n )\n def pipeline(\n python_file_path:str = 'gs://ml-pipeline-playground/samples/dataflow/wc/wc.py',\n project_id:str = PROJECT_ID,\n location:str = LOCATION,\n staging_dir:str = PIPELINE_ROOT,\n requirements_file_path:str = 'gs://ml-pipeline-playground/samples/dataflow/wc/requirements.txt',\n ):\n dataflow_python_op = DataflowPythonJobOp(\n project=project_id,\n location=location,\n python_module_path=python_file_path,\n temp_location = staging_dir,\n requirements_file_path = requirements_file_path,\n args = ['--output', OUTPUT_FILE],\n )\n\nWhat's next\n-----------\n\n- Read the [Introduction to Google Cloud Pipeline Components](/vertex-ai/docs/pipelines/components-introduction).\n- See all [tutorials that use the `google_cloud_pipeline_components`\n SDK](/vertex-ai/docs/pipelines/notebooks).\n- Get started with [Dataflow components](/vertex-ai/docs/pipelines/dataflow-component)."]]