windows下为什么无法安装waymo_open_dataset库

环境

本文中报错信息的环境如下:
Win10 64位
anaconda3
python 3.7
waymo-open-dataset-tf-2-4-0

1. 简要回答

因为pip库的官方waymo_open_dataset库不支持Windows平台,只支持LInux平台,但也不是说不能在Windows上用,你可以按照官方文档自己编译一个Win下的版本(但是这种方法笔者没有实验)。

2. 详细解答

2.1 不支持Win平台的证据

  1. 官方库文件名不符

  官方库中的库文件名中有Linux关键字但是没有Win关键字【这里给了一些说明】,这个从第三方镜像中看的更清楚,如下所示,所以笔者猜测它不支持Win。

waymo_open_dataset_tf_2_4_0-1.3.0-cp36-cp36m-manylinux2010_x86_64.whl
waymo_open_dataset_tf_2_4_0-1.3.0-cp37-cp37m-manylinux2010_x86_64.whl
waymo_open_dataset_tf_2_4_0-1.3.0-cp38-cp38-manylinux2010_x86_64.whl
waymo_open_dataset_tf_2_4_0-1.3.1-cp36-cp36m-manylinux2010_x86_64.whl
waymo_open_dataset_tf_2_4_0-1.3.1-cp37-cp37m-manylinux2010_x86_64.whl
waymo_open_dataset_tf_2_4_0-1.3.1-cp38-cp38-manylinux2010_x86_64.whl
waymo_open_dataset_tf_2_4_0-1.4.1-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
waymo_open_dataset_tf_2_4_0-1.4.1-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
  1. 安装报错

  pip安装过程中报如下错误,并且笔者排除了网上的换镜像源确认Anaconda位数确认python和pip安装路径是否匹配排除其他程序的影响之后依然会报错。

(tf2.4) C:\Users\xf>pip3 install waymo-open-dataset-tf-2-4-0
ERROR: Could not find a version that satisfies the requirement waymo-open-dataset-tf-2-4-0 (from versions: none)
ERROR: No matching distribution found for waymo-open-dataset-tf-2-4-0
  1. 本地安装报错

  甚至笔者将对应whl库文件下载下来本地安装【可参考这里】也会报错,且其报错原因更直接,就说不支持本平台。

(tf2.4) C:\Users\xudon>pip install C:\Users\xudon\Downloads\waymo_open_dataset_tf_2_4_0-1.4.1-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
ERROR: waymo_open_dataset_tf_2_4_0-1.4.1-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl is not a supported wheel on this platform.

3. 解决方案

  1. 自己编译waymo-open-dataset(未实验)
  2. 切换到Linux下操作(成功)
Logo

有“AI”的1024 = 2048,欢迎大家加入2048 AI社区

更多推荐