tpu - 在 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
我整天都在寻找在谷歌上找到的东西,但没有任何成功。我该怎么办?
解决方案
numpy
应该已经安装了吧?任何其他库都应该可以使用 apt-get 安装:
$ sudo apt install python3-sklearn python3-skimage python3-pandas
$ sudo pip3 install tqdm
推荐阅读
- go - 类型为 interface{} 的 golang RPC 结构嵌套在回复 *Struct 中
- python - 尝试遍历二维数组
- firebase - 嵌套的 FirestoreRecyclerAdapter 不显示任何内容
- python - 将python变量传递给powershell脚本
- python - 将列表格式化为仅包含“超级字符串”
- c# - Visual Studio 错误 CS0234 交互不起作用
- service-worker - Pwa 总是在快捷方式中显示镀铬标志
- typescript - 我不明白注入依赖是如何工作的。有没有人可以清楚地解释我
- html - 在列中对齐布局
- react-native - AWS Amplify Auth Login 从 React Native 上的 React Native Webview