使用conda skeleton pypi生成Conda骨架失败问题求助
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.yamlfile. 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.bz2file thatconda buildoutputs (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

