From c4613c21d5464ca5ed7c3add7ba72e3d58d00b0b Mon Sep 17 00:00:00 2001 From: Jackie Yang Date: Mon, 16 Jan 2023 00:39:10 -0800 Subject: [PATCH] Fix `networkx` package versioning Fix `AttributeError: module 'networkx' has no attribute 'from numpy matrix'`. --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index e7d48ca..7d0ac69 100644 --- a/setup.py +++ b/setup.py @@ -27,8 +27,8 @@ 'Topic :: Text Processing :: Linguistic', ], keywords='NLP,Chinese,Keywords extraction, Abstract extraction', - install_requires=['jieba >= 0.35', 'numpy >= 1.7.1', 'networkx >= 1.9.1'], + install_requires=['jieba >= 0.35', 'numpy >= 1.7.1', 'networkx >= 1.9.1, <= 2.8.8'], packages=['textrank4zh'], package_dir={'textrank4zh':'textrank4zh'}, package_data={'textrank4zh':['*.txt',]}, -) \ No newline at end of file +)