【发布时间】:2022-09-24 20:37:00
【问题描述】:
我正在运行一个小项目。它从网站上抓取数据,运行 Prophet 并给出结果。我正在使用 ML Service 制作管道。我尝试安装这样的软件包:
run_config.environment.python.conda_dependencies = CondaDependencies.create(conda_packages=[\'scikit-learn\',\'beautifulsoup4\',\'requests\',\'pandas\'])
问题是它仍然无法识别 bs4 并给出此错误:[2022-09-02 08:03:24Z]
Job failed, job RunId is .... Error: {\"Error\":{\"Code\":\"UserError\",\"Severity\":null,\"Message\":\"{\\\"NonCompliant\\\":\\\"Process \'/azureml-envs/azureml_f3f7e6c5fb83d94df23933000bf02da3/bin/python\' exited with code 1 and error message \'Execution failed. Process exited with status code 1. Error: Traceback (most recent call last):\\\\n File \\\\\\\"scrapping.py\\\\\\\", line 2, in <module>\\\\n from bs4 import BeautifulSoup\\\\nModuleNotFoundError: No module named \'bs4\'\\\\n\\\\n\'. Please check the log file \'user_logs/std_log.txt\' for more details.\\\"}\\n{\\n \\\"code\\\": \\\"ExecutionFailed\\\",\\n \\\"target\\\": \\\"\\\",\\n \\\"category\\\": \\\"UserError\\\",\\n \\\"error_details\\\": [\\n {\\n \\\"key\\\": \\\"exit_codes\\\",\\n \\\"value\\\": \\\"1\\\"\\n }\\n ]\\n}\",\"MessageFormat\":null,\"MessageParameters\":{},\"ReferenceCode\":null,\"DetailsUri\":null,\"Target\":null,\"Details\":[],\"InnerError\":null,\"DebugInfo\":null,\"AdditionalInfo\":null},\"Correlation\":null,\"Environment\":null,\"Location\":null,\"Time\":\"0001-01-01T00:00:00+00:00\",\"ComponentName\":null}
-
您能否澄清一下您要在 ML 工作区或 Visual Studio 或 databricks 中的何处安装上述软件包?
-
ML 工作区......在 ML 工作室中