在 Windows 个问题上安装 TensorFlow 对象检测

Install TensorFlow Object Detection on Windows Problems

我正在尝试在 Windows 10.

上安装 Tensor Flow Object Detection

资源: https://towardsdatascience.com/how-to-install-tensorflow-2-object-detection-api-on-windows-2eef9b7ae869

在 运行 这些步骤之后,我们收到以下错误。它在 pyarrow 上停滞不前。 如何解决?

protoc object_detection/protos/*.proto --python_out=.
python -m pip install .

  Error: Collecting pyarrow<3.0.0,>=0.15.1
  Using cached pyarrow-2.0.0.tar.gz (58.9 MB)
  Installing build dependencies ... error
  ERROR: Command errored out with exit status 1:
   command: 'C:\Users\joe.k.smith\AppData\Local\Programs\Python\Python39\python.exe' 'C:\Users\joe.k.smith\AppData\Local\Programs\Python\Python39\lib\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\joe.k.smith\AppData\Local\Temp\pip-build-env-b29td69q\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'cython >= 0.29' 'numpy==1.14.5; python_version<'"'"'3.7'"'"'' 'numpy==1.16.0; python_version>='"'"'3.7'"'"'' setuptools setuptools_scm wheel
       cwd: None
  Complete output (1950 lines):
  Ignoring numpy: markers 'python_version < "3.7"' don't match your environment
  Collecting cython>=0.29
    Using cached Cython-0.29.23-cp39-cp39-win_amd64.whl (1.7 MB)
  Collecting numpy==1.16.0

其他资源:

https://medium.com/riow/tensorflow-object-detection-on-windows-ad10bfde217c

我不太确定这个错误,但对于一般的 Tensorflow,如果你去 this page,你会看到,在撰写本文时,唯一受支持的版本 python 是 3.6 - 3.8。听起来 tensorflow/models,你最好使用 3.7。您还需要确保您拥有兼容的 pip 版本。