From 1d7b8f9938cb8b6d7744e9caabc3eb41c8891283 Mon Sep 17 00:00:00 2001 From: yongzhuo <2714618994@qq.com> Date: Fri, 25 Dec 2020 22:29:04 +0800 Subject: [PATCH] fix pip install .whl bug of numpy-pandas --- README.md | 6 ++++++ macropodus/version.py | 2 +- requirements-all.txt | 1 + requirements.txt | 7 +++---- setup.py | 1 + 5 files changed, 12 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 18ad2b6..2a4bbff 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,12 @@ # 安装 +0. 注意事项 + ``` + 默认不安装nlg-yongzhuo, 如果需要该功能自行安装; + 默认不指定numpy, pandas, scikit-learn版本, 过高或者过低的版本可能不支持 + 标准版本的依赖包详见 requirements-all.txt + ``` 1. 通过PyPI安装(模型文件另需下载, 详见[命名实体提取](#命名实体提取), [词性标注](#词性标注)): ``` pip install macropodus diff --git a/macropodus/version.py b/macropodus/version.py index 37e109e..4fd8025 100644 --- a/macropodus/version.py +++ b/macropodus/version.py @@ -5,4 +5,4 @@ # @function: version of Macropodus -__version__ = "0.0.6" +__version__ = "0.0.7" diff --git a/requirements-all.txt b/requirements-all.txt index cf2b377..0e3e1c0 100644 --- a/requirements-all.txt +++ b/requirements-all.txt @@ -8,3 +8,4 @@ networkx==2.4 tensorflow-gpu==1.15.0 keras-bert==0.80.0 keras-adaptive-softmax==0.6.0 +nlg-yongzhuo==0.0.4 \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 17657e1..e2a838a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,8 +1,7 @@ -scikit-learn==0.19.1 -nlg-yongzhuo==0.0.4 -pandas==0.23.4 +numpy +pandas +scikit-learn passlib==1.7.1 gensim==3.7.1 -numpy==1.16.2 tqdm==4.31.1 networkx==2.4 diff --git a/setup.py b/setup.py index 90bdf19..1b13c01 100644 --- a/setup.py +++ b/setup.py @@ -44,6 +44,7 @@ setup(name=NAME, 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: Implementation :: CPython', 'Programming Language :: Python :: Implementation :: PyPy'], )