【发布时间】:2019-07-29 13:01:06
【问题描述】:
当我尝试安排一个 Python 文件时,我遇到了以下错误,该文件被压缩到一个包含其库的文件夹中。
该文件只使用了pandas库,但是numpy是它的一个依赖,所以我复制了pandas所有依赖的文件夹,比如pandas、numpy、dateutil、pytz。
但我不断收到错误消息,只是在 WEBJOB、WEB APP AZURE 上,但我的 PC 上的位置工作正常。
[03/07/2019 14:39:00 > a4d03a: SYS INFO] Status changed to Initializing
[03/07/2019 14:39:01 > a4d03a: SYS INFO] Job directory change detected: Job file 'testeWEBJOB\test.py' timestamp differs between source and working directories.
[03/07/2019 14:39:28 > a4d03a: SYS INFO] Run script 'test.py' with script host - 'PythonScriptHost'
[03/07/2019 14:39:28 > a4d03a: SYS INFO] Status changed to Running
[03/07/2019 14:39:29 > a4d03a: ERR ] Traceback (most recent call last):
[03/07/2019 14:39:29 > a4d03a: ERR ] File "test.py", line 1, in <module>
[03/07/2019 14:39:29 > a4d03a: ERR ] import pandas as pd
[03/07/2019 14:39:29 > a4d03a: ERR ] File "D:\local\Temp\jobs\triggered\TESTE\zqwhvklh.hch\testeWEBJOB\pandas\__init__.py", line 19, in <module>
[03/07/2019 14:39:29 > a4d03a: ERR ] "Missing required dependencies {0}".format(missing_dependencies))
[03/07/2019 14:39:29 > a4d03a: ERR ] ImportError: Missing required dependencies ['numpy']
[03/07/2019 14:39:29 > a4d03a: SYS INFO] Status changed to Failed
[03/07/2019 14:39:29 > a4d03a: SYS ERR ] Job failed due to exit code 1
请问,谁能帮帮我?
【问题讨论】:
-
您好,您还有其他问题吗?如果答案对您有用,请帮助将其标记为答案。谢谢。
标签: python azure numpy web-applications webjob