未安装来自自定义通道的Conda依赖项

2024-10-01 05:03:23 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在努力构建自己的康达软件包。构建运行正常,meta.yaml文件如下所示:

package:
  name: simple_nodes_embedding
  version: "0.1.0"

source:
  path: ..

build:
  number: 0

requirements:
  build:
    - pip
    - python=3.7
    - setuptools
  run:
    - python=3.7
    - pypardiso
    - networkx >=2.4
    - scipy
    - numpy>=1.18.1
    - markdown
    - statsmodels


about:
  home: https://github.com/monomonedula/simple-graph-embedding
  license: Apache License 2.0
  license_file: LICENSE.txt
  summary: Simple deterministic algorithm for generating graph nodes topological embeddings.

然而,当我跑的时候

conda install simple_nodes_embedding -c local -c defaults -c conda-forge -c haasad

并且内置的软件包已经安装,haasad频道的pypardiso软件包还没有安装

>>> from simple_nodes_embedding import embedding
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/vhhl/dev/simple-graph-embedding/simple_nodes_embedding/embedding.py", line 4, in <module>
    from pypardiso import spsolve
ModuleNotFoundError: No module named 'pypardiso'

我该如何解决这个问题?在创建conda包时,从自定义通道指定依赖项的正确方法是什么


Tags: fromimportbuildhomelicenselineembeddingsimple