MxNet源码解析-libinfo.py

//libinfo.py
# coding: utf-8
"""Information about mxnet."""
from __future__ import absolute_import
import os
import platform

def find_lib_path():
    """Find MXNet dynamic library files.

    Returns
    -------
    lib_path : list(string)
        List of all found path to the libraries
    """
    //__file__ 是用来获得模块所在的路径的,这可能得到的是一个相对路径
    //[os.path.dirname()](http://http://blog.youkuaiyun.com/lxjames833539/article/details/5251608)
    //os.path.expanduser()把path中包含的"~""~use
(d2l) C:\Windows\System32>pip install mxnet-cu101==1.7.0 -f https://dist.mxnet.io/python Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Looking in links: https://dist.mxnet.io/python DEPRECATION: Wheel filename 'mxnet-pi-1.5.0-py2.py3-none-any.whl' is not correctly normalised. Future versions of pip will raise the following error: Invalid wheel filename (invalid version): 'mxnet-pi-1.5.0-py2.py3-none-any' pip 25.3 will enforce this behaviour change. A possible replacement is to rename the wheel to use a correctly normalised name (this may require updating the version in the project metadata). Discussion can be found at https://github.com/pypa/pip/issues/12938 DEPRECATION: Wheel filename 'mxnet-raspi-1.5.0-py2.py3-none-any.whl' is not correctly normalised. Future versions of pip will raise the following error: Invalid wheel filename (invalid version): 'mxnet-raspi-1.5.0-py2.py3-none-any' pip 25.3 will enforce this behaviour change. A possible replacement is to rename the wheel to use a correctly normalised name (this may require updating the version in the project metadata). Discussion can be found at https://github.com/pypa/pip/issues/12938 Collecting mxnet-cu101==1.7.0 Using cached https://repo.mxnet.io/dist/python/cu101/mxnet_cu101-1.7.0-py2.py3-none-win_amd64.whl (718.3 MB) Requirement already satisfied: numpy<1.17.0,>=1.8.2 in d:\anaconda\envs\d2l\lib\site-packages (from mxnet-cu101==1.7.0) (1.16.6) Requirement already satisfied: requests<2.19.0,>=2.18.4 in d:\anaconda\envs\d2l\lib\site-packages (from mxnet-cu101==1.7.0) (2.18.4) INFO: pip is looking at multiple versions of mxnet-cu101 to determine which version is compatible with other requirements. This could take a while. ERROR: Could not find a version that satisfies the requirement graphviz<0.9.0,>=0.8.1 (from mxnet-cu101) (from versions: none) ERROR: No matching distribution found for graphviz<0.9.0,>=0.8.1
最新发布
06-08
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值