You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用conda skeleton pypi生成Conda骨架失败问题求助

Getting Your PyPI Package onto a Custom Conda Channel (Fixing conda skeleton Warnings)

Hey there! Let's walk through what's going on with your conda skeleton pypi command and get your package published to your Conda channel smoothly.

First off, the version message you see is a warning, not an error:

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.

Conda just noticed your PyPI package has multiple versions available and defaulted to the latest one (0.1.1). If you want to generate a skeleton for a specific older version, just add the --version flag to your command:

conda skeleton pypi rutgerhofstepythonpackage --version 0.0.2

Next, the truncated directory path message:

Leaving build/test directories: Work: /opt/anaconda3/conda-bld/skeleton_1523284768777/work Test: /opt/anaconda3/conda-bld/sk...

This is also totally normal! Conda is letting you know it kept the temporary build/test folders around in case you need to debug anything. If you don't want these leftover directories, add the --clean flag to auto-delete them when the command finishes:

conda skeleton pypi rutgerhofstepythonpackage --clean

Once you've generated the skeleton successfully, here are the next steps to publish to your Conda channel:

  • Navigate to the auto-generated recipe folder (it'll have the same name as your package) and double-check the meta.yaml file. Make sure details like version number, dependencies, and author info are correct—tweak them manually if needed.
  • Build the Conda package:
    conda build rutgerhofstepythonpackage
    
  • If you don't already have it installed, add the Anaconda client tool:
    conda install anaconda-client
    
  • Log in to your Anaconda account:
    anaconda login
    
  • Upload the built package to your channel. Use the full path to the .tar.bz2 file that conda build outputs (replace placeholders with your actual platform and build number):
    anaconda upload /opt/anaconda3/conda-bld/linux-64/rutgerhofstepythonpackage-0.1.1-1.tar.bz2
    

If you run into actual errors (not just warnings) during any of these steps, share the full output and we can troubleshoot further!


内容的提问来源于stack exchange,提问作者Rutger Hofste

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.22 09:20:10