conda 骨架失败

标签 conda python-wheel

我在 Pypi 上发布了一个示例 python 包使用轮子。我想使用 this 在我的 Conda channel 上发布包教程。

但是,当我运行时:conda skeleton pypi rutgerhofstepythonpackage我收到以下错误:

Warning, the following versions were found for rutgerhofstepythonpackage
0.0.1
0.0.2
0.1.1
Using 0.1.1
Use --version to specify a different version.

Leaving build/test directories:
  Work:  /opt/anaconda3/conda-bld/skeleton_1523284768777/work
  Test:  /opt/anaconda3/conda-bld/skeleton_1523284768777/test_tmp
Leaving build/test environments:
  Test: source activate  /opt/anaconda3/conda-bld/skeleton_1523284768777/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho
  Build:        source activate  /opt/anaconda3/conda-bld/skeleton_1523284768777/_build_env


Error: No source urls found for rutgerhofstepythonpackage

最佳答案

Conda Skeleton 需要源代码分发。将轮子上传到 pypi 是不够的。

除了构建分发python setup.py bdist_wheel --universal创建源分发python setup.py sdist
在上传到 PyPi 之前。我在尝试使用此 tutorial 手动创建 meta.yaml 文件时发现了这一点

关于 conda 骨架失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49735655/

相关文章:

python - 命令行不使用 conda 环境中的 python,即使它处于事件状态,可能是 .bash_profile 中的问题?

python - 如何创建使用 PyPy 的 Conda 环境?

python - 无法在Windows64上安装mysqlclient

蟒轮 : "ModuleNotFoundError" after installing package

python - python 轮子在多次安装中摊销编译时间是什么意思?

python - 在 Mac 上运行 sugiyama.py 时出现 lxml 错误

python - 由于环境错误 : [Errno 2] No such file or directory\\METADATA,无法安装包

python - conda 安装 : Packages missing in current channels

python - 如何使用 setup.cfg 设置 Python 包配置文件

python - python中的轮子是什么