与 scann 的分布不匹配

问题描述 投票:0回答:2

我被困了好几天试图安装 tflite-model-maker。现在,我最关心的问题是我无法通过 pip(也不能通过 conda)安装 scaNN。 我在 python 3.10、3.19、3.8 环境下尝试过,全部在 Windows 10 中。

我读到 scann 是一个不能在 Windows 中工作的 Linux 库。好的,我尝试从我的托管 Linux 服务器安装,在一个没有安装很多库的新环境中。结果和windows下一模一样:

ERROR: Could not find a version that satisfies the requirement scann==1.2.6 (from versions: none)
ERROR: No matching distribution found for scann==1.2.6

我读到它可以在 WSL 中工作,太棒了,我尝试从 Cygwin 上的虚拟环境安装 scann。结果相同。

底线:pip 无法从 Windows、Cygwin 或 Linux 服务器找到 scaNN。

我不知道如何检查该库是否可用,或者我之前需要安装哪些要求。

这个可怜的迷失的灵魂有什么光明吗?

python scann
2个回答
0
投票

我遇到了同样的问题,尝试在 conda env 中安装 python 3.7 并且不要忘记 tflite-model-make 所需的音频包。


0
投票

https://github.com/google-research/google-research/tree/master/scann 从源头构建 蟒蛇配置.py CC=clang-16 bazel build -c opt --features=thin_lto --copt=-mavx --copt=-mfma --cxxopt="-std=c++17" --copt=-fsized-deallocation -- copt=-w :build_pip_pkg ./bazel-bin/build_pip_pkg

失败错误:属性 srcs: '@local_config_tf//:ensorflow_framework.2' 不会生成任何 cc_library srcs 文件

添加--action_env TF_SHARED_LIBRARY_NAME =“libtensorflow_framework.2.dylib”

© www.soinside.com 2019 - 2024. All rights reserved.