【问题标题】:How to install Python package LIBPMF from makefile?如何从 makefile 安装 Python 包 LIBPMF?
【发布时间】:2022-01-17 03:04:22
【问题描述】:

我想安装官方网站为https://www.cs.utexas.edu/~rofuyu/libpmf/的软件包LIBPMF。这个包的完整文件可以从here下载。解压后,我们有

在文件夹python,我们有

README,我们有

Requirement
===========
    - numpy
    - scipy.sparse

Build
=====
    type `make' in this directory


A Simple Example
================
    Within the directoy python/, open a python shell.

    >>> import libpmf
    >>> import scipy.sparse as sparse
    >>> A = sparse.rand(100,100,0.3)
    >>> model = libpmf.train(A, '-k 10 -l 0.1')
    starts!
    m 100 n 100 k 10 nnz 3000
    Wall-time: 0.0212269 secs
    >>> model.keys() # model is a dictionary
    ['H', 'W']

我的操作系统是 Windows 10 Pro version 21H2 build 19044.1348,我的 Anaconda 是 Anaconda3-2021.11-Windows-x86_64

我无法理解指令type "make" in this directory。您能否详细说明在这种情况下如何安装该软件包?

【问题讨论】:

    标签: python makefile package


    【解决方案1】:

    在您解压缩的目录中打开您的终端。您必须在终端“make”中输入。我认为这行不通,因为你需要一个linux系统。在 Windows 上执行此操作,请查看此链接:

    makefile in windows

    【讨论】:

      猜你喜欢
      • 2012-01-29
      • 1970-01-01
      • 2011-02-01
      • 2015-05-13
      • 2013-01-18
      • 2013-02-22
      • 2017-03-19
      • 1970-01-01
      • 2018-01-26
      相关资源
      最近更新 更多