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

运行Sentiment_Training出错 #18

Open
lixiansen2048 opened this issue Mar 20, 2020 · 0 comments
Open

运行Sentiment_Training出错 #18

lixiansen2048 opened this issue Mar 20, 2020 · 0 comments

Comments

@lixiansen2048
Copy link

D:\Anaconda\envs\torch\python.exe D:/NLP/code/BERT_tutorial/Sentiment_Training.py
Traceback (most recent call last):
File "D:/NLP/code/BERT_tutorial/Sentiment_Training.py", line 4, in
from dataset.sentiment_dataset_v2 import CLSDataset
File "D:\NLP\code\BERT_tutorial\dataset\sentiment_dataset_v2.py", line 7, in
from sklearn.utils import shuffle
File "D:\Anaconda\envs\torch\lib\site-packages\sklearn_init_.py", line 82, in
from .base import clone
File "D:\Anaconda\envs\torch\lib\site-packages\sklearn\base.py", line 20, in
from .utils import IS_32BIT
File "D:\Anaconda\envs\torch\lib\site-packages\sklearn\utils_init
.py", line 20, in
from scipy.sparse import issparse
File "D:\Anaconda\envs\torch\lib\site-packages\scipy\sparse_init_.py", line 230, in
from .base import *
File "D:\Anaconda\envs\torch\lib\site-packages\scipy\sparse\base.py", line 9, in
from scipy._lib.numpy_compat import broadcast_to
File "D:\Anaconda\envs\torch\lib\site-packages\scipy_lib_numpy_compat.py", line 16, in
assert_warns = np.testing.assert_warns
File "D:\Anaconda\envs\torch\lib\site-packages\numpy_init
.py", line 213, in getattr
import numpy.testing as testing
File "D:\Anaconda\envs\torch\lib\site-packages\numpy\testing_init
.py", line 12, in
from .private.utils import *
File "D:\Anaconda\envs\torch\lib\site-packages\numpy\testing_private\utils.py", line 57, in
HAS_LAPACK64 = hasattr(numpy.config, 'lapack_ilp64_opt_info')
File "D:\Anaconda\envs\torch\lib\site-packages\numpy_init
.py", line 220, in getattr
"{!r}".format(name, attr))
AttributeError: module 'numpy' has no attribute 'config'

不知道是不是因为和题主的版本不一样的原因,题主能说一下各个包的版本么

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

No branches or pull requests

1 participant