我正在努力构建自己的康达软件包。构建运行正常,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包时,从自定义通道指定依赖项的正确方法是什么
嗯,它不起作用的原因是我在我的
setup.py
文件中为包指定了错误的名称(我从pypardiso包中复制了一部分,但忘记替换名称)。我把它改了,现在可以用了相关问题 更多 >
编程相关推荐