Conda skeleton pypi: ModuleNotFoundError: No module named 'numpy'

后端 未结 1 992
刺人心
刺人心 2021-01-26 21:46

I\'m trying to create a conda package from a package I\'ve uploaded to PyPI, by following this tutorial. I\'ve downloaded and installed the latest Anaconda environment for Linux

相关标签:
1条回答
  • 2021-01-26 22:08

    I suspect that the advice in that GitHub issue is rather outdated. The current version of conda skeleton pypi doesn't really care about the active environment nor does it use _build, but instead creates a temporary environment in which to attempt to install the package and eventually output a recipe. One can add additional requirements to the temporary environment using the --extra-specs flag. In your case, this should be something like

    conda skeleton pypi --extra-specs numpy mf2
    
    0 讨论(0)
提交回复
热议问题