[to #42322933] remove requirements of mpi4py

(cherry picked from commit 4215e67ba2)
This commit is contained in:
zhangzhicheng.zzc
2023-02-11 06:13:25 +00:00
committed by Zhicheng Zhang
parent 36ef7260b8
commit a94edef2bc
3 changed files with 8 additions and 1 deletions

View File

@@ -7,7 +7,6 @@ ftfy
langdetect
lsh
matplotlib
mpi4py
nltk
pandas
regex

View File

@@ -146,3 +146,10 @@ TEXT2SQL_LGESQL_IMPORT_ERROR = """
{0} requires the text2sql_lgesql library but it was not found in your environment. You can install it with pip:
`pip install text2sql_lgesql -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html`
"""
# docstyle-ignore
MPI4PY_IMPORT_ERROR = """
{0} requires the mpi4py library but it was not found in your environment. You can install it with pip:
`pip install mpi4py' and with following the instruction to install openmpi,
https://docs.open-mpi.org/en/v5.0.x/installing-open-mpi/quickstart.html`
"""

View File

@@ -303,6 +303,7 @@ REQUIREMENTS_MAAPING = OrderedDict([
MEGATRON_UTIL_IMPORT_ERROR)),
('text2sql_lgesql', (is_package_available('text2sql_lgesql'),
TEXT2SQL_LGESQL_IMPORT_ERROR)),
('mpi4py', (is_package_available('mpi4py'), MPI4PY_IMPORT_ERROR)),
])
SYSTEM_PACKAGE = set(['os', 'sys', 'typing'])