Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

numpy版本问题 #21

Open
Smawexi opened this issue May 26, 2022 · 1 comment
Open

numpy版本问题 #21

Smawexi opened this issue May 26, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@Smawexi
Copy link

Smawexi commented May 26, 2022

从1.18版本开始,numpy正式淘汰了numpy.testing.decorators这一系列模块名(注意:只是淘汰了模块名,他们实质上包含的内容还在),并且贴心地告诉用户,要用umpy.testing.decorators里面的功能(命名空间),只需要import numpy.testing 就够了,自当前版本开始的testing自动会包含原有的testing.decorations等子模块
作者可以更新一下相关的包嘛?,我用的numpy版本是1.19.5,出了点问题,如下:
D:\fsy\Anaconda\python.exe D:/python_study/IntelligentAnalysis/extract.py
Traceback (most recent call last):
File "D:/python_study/IntelligentAnalysis/extract.py", line 1, in
from gerapy_auto_extractor import extract_detail
File "D:\fsy\Anaconda\lib\site-packages\gerapy_auto_extractor_init_.py", line 4, in
from gerapy_auto_extractor.classifiers.list import is_list, probability_of_list
File "D:\fsy\Anaconda\lib\site-packages\gerapy_auto_extractor\classifiers\list.py", line 6, in
from sklearn.metrics import classification_report
File "D:\fsy\Anaconda\lib\site-packages\sklearn_init_.py", line 82, in
from .base import clone
File "D:\fsy\Anaconda\lib\site-packages\sklearn\base.py", line 17, in
from .utils import IS_32BIT
File "D:\fsy\Anaconda\lib\site-packages\sklearn\utils_init
.py", line 23, in
from .class_weight import compute_class_weight, compute_sample_weight
File "D:\fsy\Anaconda\lib\site-packages\sklearn\utils\class_weight.py", line 7, in
from .validation import _deprecate_positional_args
File "D:\fsy\Anaconda\lib\site-packages\sklearn\utils\validation.py", line 26, in
from .fixes import object_dtype_isnan, parse_version
File "D:\fsy\Anaconda\lib\site-packages\sklearn\utils\fixes.py", line 20, in
import scipy.stats
File "D:\fsy\Anaconda\lib\site-packages\scipy\stats_init
.py", line 345, in
from .morestats import *
File "D:\fsy\Anaconda\lib\site-packages\scipy\stats\morestats.py", line 12, in
from numpy.testing.decorators import setastest
ModuleNotFoundError: No module named 'numpy.testing.decorators'

@Smawexi Smawexi added the enhancement New feature or request label May 26, 2022
@Germey
Copy link
Member

Germey commented May 26, 2022

多谢,我会 fix 下哈~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants