macos - 错误 : Could not find a version that satisfies the requirement tensorflow-text==2. 8.*(来自版本:无)

标签 macos tensorflow tensorflow2.0 apple-m1

问题

  • 我正在尝试在我的 m1 MacBook 上运行基本文本 Tensorflow 教程
  • 我已正确安装新的基于金属的软件包 guide
  • 当我完成教程中的这一点时,我收到错误

代码

!pip install -q "tensorflow-text==2.8.*"

错误

ERROR: Could not find a version that satisfies the requirement tensorflow-text==2.8.* (from versions: none)
ERROR: No matching distribution found for tensorflow-text==2.8.*

尝试过的解决方案

最佳答案

从这里下载tensorflow_text-2.8.1-cp38-cp38-macosx_11_0_arm64.whl==>https://github.com/sun1638650145/Libraries-and-Extensions-for-TensorFlow-for-Apple-Silicon/releases

然后在虚拟环境中转到您下载的文件夹并执行 dopip install tensorflow_text-2.8.1-cp38-cp38-macosx_11_0_arm64.whl

我使用了 ConatusEng 的答案 https://developer.apple.com/forums/thread/700906

完成此操作后,您是否能够在使用 GPU 的情况下运行 TensorFlow 教程? 当我运行 Transformer 模型进行语言理解时 https://www.tensorflow.org/text/tutorials/transformer和使用 RNN 进行文本分类 https://www.tensorflow.org/text/tutorials/text_classification_rnn尽管我收到消息“device_type GPU 的插件优化器已启用”,但 GPU 并未使用。您的情况会发生什么?

关于macos - 错误 : Could not find a version that satisfies the requirement tensorflow-text==2. 8.*(来自版本:无),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72945195/

相关文章:

tensorflow - TensorFlow 2 中带有导数的损失函数

python - Tensorflow:如何在使用新的最终层扩展图形后恢复初始 v3 预训练网络权重

python - Tensorflow Keras - AttributeError : Layer features has no inbound nodes

tensorflow - AttributeError : module 'tensorflow_core._api.v2.config' has no attribute 'list_physical_devices'

python - 当 @tf.function 装饰器将函数编译成图时会发生什么?为什么比eager模式更快?

php - 使用 MAMP 的 Laravel 错误 HTTP 500

OSX 应用程序包中的 Java swixml

python - 建议在 tensorflow 2.0 中调试 `tf.data.Dataset` 操作

c - 收到警报信号时,read() 系统调用不会失败

macos - 如何写入 OSX 系统钥匙串(keychain)?