Fix pip install on Windows for Python 3.11 (#271)

This commit is contained in:
Fangjun Kuang
2023-08-14 22:22:46 +08:00
committed by GitHub
parent 313debe45c
commit 496c5dd7f5
3 changed files with 4 additions and 2 deletions

View File

@@ -37,7 +37,8 @@ with open("sherpa-onnx/python/sherpa_onnx/__init__.py", "a") as f:
install_requires = [
"numpy",
"sentencepiece==0.1.96",
"sentencepiece==0.1.96; python_version < '3.11'",
"sentencepiece; python_version >= '3.11'",
]