首页 > 解决方案 > 在 Google Coral TPU 中安装库

问题描述

我尝试在 Google Coral TPU 上安装以下库但没有成功。我想与 tensorflow lite 合作的这些库:

pandas 
numpy 
scikit-learn 
scikit-image 
click tqdm

在 Google Coral TPU 中,为了使用 tensorflow lite,我收到以下错误:

File "numpy/core/setup.py", line 422, in generate_config_h
          moredefs, ignored = c6wfs --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel Cython>=0.29.13 "numpy==1.13.3; python_version=='3.6' and platform_system!='AIX'" "numpy==1.14.5; python_version=='3.7' and platform_system!='AIX'" "numpy==1.17.3; python_version>='3.8' and platform_system!='AIX'" "numpy==1.16.0; python_version=='3.6' and platform_system=='AIX'" "numpy==1.16.0; python_version=='3.7' and platform_system=='AIX'" "numpy==1.17.3; python_version>='3.8' and platform_system=='AIX'"" failed with error code 1 in None

我整天都在寻找在谷歌上找到的东西,但没有任何成功。我该怎么办?

标签: tpugoogle-coral

解决方案


numpy应该已经安装了吧?任何其他库都应该可以使用 apt-get 安装:

$ sudo apt install python3-sklearn python3-skimage python3-pandas
$ sudo pip3 install tqdm

推荐阅读