我正在尝试在Google多语言通用编码器上重现笔记本。但是,通过下载必要的库,如下所示:tensorflow_text
%%capture
#@title Setup Environment
# Install the latest Tensorflow version.
!pip3 install tensorflow_text
或
!python -m pip install tensorflow_text
我得到jupyter:
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-48-399dd4157896> in <module>
8 import tensorflow.compat.v2 as tf
9 import tensorflow_hub as hub
---> 10 from tensorflow_text import SentencepieceTokenizer
11 import sklearn.metrics.pairwise
12
ModuleNotFoundError: No module named 'tensorflow_text'
我试图用 安装它,但它给了我:python -m pip install tensorflow-text
(seg_env) C:\Users\antoi\Documents\Programming\Covent Garden\Segmentation\sentiment>python -m pip install tensorflow-text
Collecting tensorflow-text
ERROR: Could not find a version that satisfies the requirement tensorflow-text (from versions: none)
ERROR: No matching distribution found for tensorflow-text
WARNING: You are using pip version 19.2.3, however version 20.0.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
我也试过conda install -c conda-forge tensorflow
慕哥9229398
MMMHUHU
翻阅古今
子衿沉夜
相关分类