待解决的问题

关于安装及打开的一直无法解决的问题

在这里插入图片描述

不论在什么位置打开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.

不知道跟什么有关

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值