condabuild上载期间出现包依赖项错误

2024-03-28 15:12:54 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试将pycaret包上传到anaconda中,这样就可以使用conda install pycaret进行安装。这是issue 21,我正在做

因此,我在Building conda packages with conda skeleton中遵循了这些步骤,并通过运行conda skeleton pypi pycaret创建了meta.yaml文件(问题末尾的内容)

之后,当我运行conda-build pycaret时,它会向我抛出依赖项错误。见下图

enter image description here

enter image description here

也许是因为那些包裹还没有送到康达。我用pip安装了它们,它们已经在我的conda base环境中了

还要注意“平台win-64的不可满足依赖项”。这有意义吗?我使用的是Windows1064位


下面是由conda skeleton生成的meta.yaml内容

{% set name = "pycaret" %}
{% set version = "2.0" %}

package:
  name: "{{ name|lower }}"
  version: "{{ version }}"

source:
  url: "https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz"
  sha256: 5db9060f9d8ba53dbfb558b41de822c5b4175223c05a3a2c3c41c71346510694

build:
  number: 0
  script: "{{ PYTHON }} -m pip install . -vv"

requirements:
  host:
    - catboost
    - cufflinks >=0.17.0
    - datefinder >=0.7.0
    - datetime >=4.3
    - gensim
    - imbalanced-learn
    - ipython
    - ipywidgets
    - joblib
    - kmodes >=0.10.1
    - lightgbm >=2.3.1
    - matplotlib
    - mlflow
    - mlxtend
    - nltk
    - numpy >=1.17
    - pandas
    - pandas-profiling >=2.3.0
    - pip
    - plotly >=4.4.1
    - pyldavis
    - pyod
    - python
    - scikit-learn >=0.23
    - seaborn
    - spacy
    - textblob
    - umap-learn
    - wordcloud
    - xgboost >=0.90
    - yellowbrick >=1.0.1
  run:
    - catboost
    - cufflinks >=0.17.0
    - datefinder >=0.7.0
    - datetime >=4.3
    - gensim
    - imbalanced-learn
    - ipython
    - ipywidgets
    - joblib
    - kmodes >=0.10.1
    - lightgbm >=2.3.1
    - matplotlib
    - mlflow
    - mlxtend
    - nltk
    - numpy >=1.17
    - pandas
    - pandas-profiling >=2.3.0
    - plotly >=4.4.1
    - pyldavis
    - pyod
    - python
    - scikit-learn >=0.23
    - seaborn
    - spacy
    - textblob
    - umap-learn
    - wordcloud
    - xgboost >=0.90
    - yellowbrick >=1.0.1

test:
  imports:
    - pycaret

about:
  home: "https://github.com/pycaret/pycaret"
  license: MIT
  license_family: MIT
  license_file: 
  summary: "PyCaret - An open source, low-code machine learning library in Python."
  doc_url: 
  dev_url: 

extra:
  recipe-maintainers:
    - your-github-id-here

有什么建议吗?这是我第一次把包裹上传到康达


Tags: installpipnamepypiurlsourcepandaslicense