关于安装及打开的一直无法解决的问题
不论在什么位置打开
jupyter notebook
好像都会出现运行错误
from mxnet import np, npx
npx.set_np()
x = np.array(3.0)
y = np.array(2.0)
x + y, x * y, x / y, x ** y
FileNotFoundError Traceback (most recent call last)
Cell In[1], line 1
----> 1 from mxnet import np, npx
3 npx.set_np()
5 x = np.array(3.0)
File D:\LenovoSoftstore\Anaconda3\envs\d2l\lib\site-packages\mxnet\__init__.py:23
1 #!/usr/bin/env python
2
3 # Licensed to the Apache Software Foundation (ASF) under one
(...)
19
20 # coding: utf-8
21 """MXNet: a concise, fast and flexible framework for deep learning."""
---> 23 from .context import Context, current_context, cpu, gpu, cpu_pinned
24 from . import engine, error
25 from .base import MXNetError
File D:\LenovoSoftstore\Anaconda3\envs\d2l\lib\site-packages\mxnet\context.py:23
21 import warnings
22 import ctypes
---> 23 from .base import classproperty, with_metaclass, _MXClassPropertyMetaClass
24 from .base import _LIB
25 from .base import check_call
File D:\LenovoSoftstore\Anaconda3\envs\d2l\lib\site-packages\mxnet\base.py:351
349 __version__ = libinfo.__version__
350 # library instance of mxnet
--> 351 _LIB = _load_lib()
353 # type definitions
354 mx_int = ctypes.c_int
File D:\LenovoSoftstore\Anaconda3\envs\d2l\lib\site-packages\mxnet\base.py:342, in _load_lib()
340 """Load library by searching possible path."""
341 lib_path = libinfo.find_lib_path()
--> 342 lib = ctypes.CDLL(lib_path[0], ctypes.RTLD_LOCAL)
343 # DMatrix functions
344 lib.MXGetLastError.restype = ctypes.c_char_p
File D:\LenovoSoftstore\Anaconda3\envs\d2l\lib\ctypes\__init__.py:374, in CDLL.__init__(self, name, mode, handle, use_errno, use_last_error, winmode)
371 self._FuncPtr = _FuncPtr
373 if handle is None:
--> 374 self._handle = _dlopen(self._name, mode)
375 else:
376 self._handle = handle
FileNotFoundError: Could not find module 'D:\LenovoSoftstore\Anaconda3\envs\d2l\lib\site-packages\mxnet\libmxnet.dll' (or one of its dependencies). Try using the full path with constructor syntax.
不知道跟什么有关