Conda Build - creating a Conda package fails on dependencies for platform win-64

依然范特西╮ 提交于 2019-12-10 19:31:04

问题


Building my first conda package from a local dir. following instructions from CONDA site. https://conda.io/docs/user-guide/tasks/build-packages/recipe.html

i get the following error

conda_build.exception.DependencyNeedsBuildingError: Unsatisfiable dependencies for platform win-64: set([u'pywinauto', u'statistics', u'openturns'])

I tried several items, however it seems the pywinauto, statistics and openturns are causing dependency issues.

here is my meta.yml file

package:
  name: apples
  version: "1.0.0"

source:
  path: ../src

target_platform:
  - win-64

requirements:
  build:
    - python
    - setuptools
    - statistics # [win64]
    - pywinauto # [win64]
    - openturns # [win64]
    - matplotlib
    - numpy
    - pandas
    - pip
    - pyodbc
    - pyqt
    - pywin32
    - qt
    - scipy
    - tqdm
    - xlwings

  run:
    - python
    - matplotlib
    - numpy
    - pandas
    - pip
    - pyodbc
    - pyqt
    - pywin32
    - qt
    - scipy
    - tqdm
    - xlwings
    - statistics # [win64]
    - pywinauto # [win64]
    - openturns # [win64]

回答1:


All of the packages that you use in a conda build have to be available as conda packages in one of the channels in your configuration. For your case:

  • statistics and openturns are available from the conda-forge channel: https://anaconda.org/search?q=openturns and https://anaconda.org/search?q=statistics
  • However, the pywinauto package is not available as a conda package, so you'll have to build your own, https://anaconda.org/search?q=pywinauto This is not too difficult to do with the conda skeleton pypi command


来源:https://stackoverflow.com/questions/46412980/conda-build-creating-a-conda-package-fails-on-dependencies-for-platform-win-64

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!