Skip to content

Commit fc6e37b

Browse files
authored
Install TF Text on non-Windows only (#2115)
1 parent 5551f54 commit fc6e37b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Tensorflow.
22
tensorflow-cpu~=2.18.0;sys_platform != 'darwin'
33
tensorflow~=2.18.0;sys_platform == 'darwin'
4-
tensorflow-text~=2.18
4+
tensorflow-text~=2.18;platform_system != 'Windows'
55

66
# Torch.
77
--extra-index-url https://download.pytorch.org/whl/cpu

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@ def get_version(rel_path):
4545
"regex",
4646
"rich",
4747
"kagglehub",
48+
"tensorflow-text;platform_system != 'Windows'",
4849
],
4950
extras_require={
5051
"extras": [
5152
"rouge-score",
5253
"sentencepiece",
5354
],
54-
"nlp": ["tensorflow-text"],
5555
},
5656
# Supported Python versions
5757
python_requires=">=3.9",

0 commit comments

Comments
 (0)