首页 > 解决方案 > GCP AI 平台:脚本 _name_ 安装在 '/root/.local/bin' 中,它不在 PATH 上

问题描述

我正在尝试将 python 文件推送到 Google AI Platform(统一)。对于我使用 setuptools 的依赖项:

%%writefile custom/setup.py
from setuptools import find_packages
from setuptools import setup

REQUIRED_PACKAGES = ['scikit-learn', 'pandas', 'numpy>=1.17', 'transformers', 'tensorboard']

setup(
    name='trainer',
    version='0.1',
    install_requires=REQUIRED_PACKAGES,
    packages=find_packages(),
    include_package_data=True,
    description='My training application package.'
)

为 中的所有包获取此错误REQUIRED PACKAGES

"pathname": "run_module.py",
"levelname": "ERROR",
"message": "  WARNING: The script tensorboard is installed in '/root/.local/bin' which is not on PATH."

在此处输入图像描述

来自pathname run_module.py谷歌云。我没有这样命名的文件。我是否应该将我的训练任务的文件名更改为 run_module.py 并且它会起作用?

标签: pythongoogle-cloud-platformsetuptoolsgoogle-ai-platform

解决方案


我们遵循Vertex AI(以前称为 AI Platform Unified)文档和codelab并运行了一些训练作业。我们可以在 Stackdriver 日志中看到相同的错误/警告消息,但训练作业运行成功。

在联系了负责该产品的 ML 团队后,他们确认由于堆栈驱动程序日志中显示的这些错误/警告消息,不会对训练作业产生影响。如果您发现培训工作的最终结果有任何失败,请告诉我们。


推荐阅读