问题
- 我正在尝试在我的 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/