My Python Version is 3.11.3 and installed mxnet by ‘pip install mxnet’
But it doesn’t work…
How to solve it?
---------------------------------------------------------------------------
OSError Traceback (most recent call last)
Cell In[11], line 11
9 from transformers import BertModel, AdamW
10 from transformers.optimization import get_cosine_schedule_with_warmup
---> 11 import gluonnlp as nlp
File /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/gluonnlp/__init__.py:23
1 # coding: utf-8
2
3 # Licensed to the Apache Software Foundation (ASF) under one
(...)
19
20 # pylint: disable=wildcard-import
21 """NLP toolkit."""
---> 23 from . import loss
24 from . import data
25 from . import embedding
File /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/gluonnlp/loss/__init__.py:23
1 # coding: utf-8
2
3 # Licensed to the Apache Software Foundation (ASF) under one
(...)
19
...
--> 376 self._handle = _dlopen(self._name, mode)
377 else:
378 self._handle = handle
OSError: dlopen(/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/mxnet/libmxnet.so, 0x0006): tried: '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/mxnet/libmxnet.so' (not a mach-o file), '/System/Volumes/Preboot/Cryptexes/OS/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/mxnet/libmxnet.so' (no such file), '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/mxnet/libmxnet.so' (not a mach-o file)