“[Errno 38] 函数未实现:”在 Azure 机器学习上安装 Tensorflow 对象检测 API 时发生

问题描述

我尝试使用 API 文档中描述的以下命令在 Azure 机器学习上安装 Object Detection API with Tensorflow 2

git clone https://github.com/tensorflow/models.git

docker build -f research/object_detection/dockerfiles/tf2/Dockerfile -t od .
docker run -it od

cd models/research
protoc object_detection/protos/*.proto --python_out=.
cp object_detection/packages/tf2/setup.py .
python -m pip install --use-feature=2020-resolver .

但是当我执行上述(python -m pip install ...)的最后一段代码时,出现了以下错误错误太长,错误的每一行都显示 [Errno 38] Function not implemented:错误的尾部如下所示:

....(omitted)...
('/mnt/batch/tasks/shared/LS_root/mounts/clusters/(some_path)/models/research/vid2depth/WORKSPACE','/tmp/pip-req-build-uxkxrn35/vid2depth/WORKSPACE',"[Errno 38] Function not implemented: '/mnt/batch/tasks/shared/LS_root/mounts/clusters/(some_path)/models/research/vid2depth/WORKSPACE'"),('/mnt/batch/tasks/shared/LS_root/mounts/clusters/(some_path)/models/research/vid2depth','/tmp/pip-req-build-uxkxrn35/vid2depth',"[Errno 38] Function not implemented: '/mnt/batch/tasks/shared/LS_root/mounts/clusters/(some_path)/models/research/vid2depth'"),('/mnt/batch/tasks/shared/LS_root/mounts/clusters/(some_path)/models/research','/tmp/pip-req-build-uxkxrn35',"[Errno 38] Function not implemented: '/mnt/batch/tasks/shared/LS_root/mounts/clusters/(some_path)/models/research'")]

我已经确认在我的本地 PC 上安装了相同的命令是成功的。 如果我想在 Azure 机器学习上安装它,是否需要做一些不同的事情?

解决方法

我从主文件夹 (/home/azureuser) 尝试了相同的步骤,它对我有用。您可以尝试切换到主文件夹并运行这些步骤,看看它是否有效吗?