Conda Build-创建Conda程序包对平台Win-64的依赖项失败 [英] Conda Build - creating a Conda package fails on dependencies for platform win-64

查看:245
本文介绍了Conda Build-创建Conda程序包对平台Win-64的依赖项失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从本地目录构建我的第一个conda软件包. 按照CONDA网站上的说明进行操作. https://conda.io/docs/user-guide/task/build-packages/recipe.html

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

我遇到以下错误

conda_build.exception.DependencyNeedsBuildingError:平台win-64的依赖项无法满足:set([u'pywinauto',u'statistics',u'openturns'])

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

我尝试了几项,但是似乎pywinauto,统计信息和openturns导致了依赖性问题.

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

这是我的meta.yml文件

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]

推荐答案

在conda构建中使用的所有软件包都必须以conda软件包的形式在您的配置之一中可用.对于您的情况:

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

这篇关于Conda Build-创建Conda程序包对平台Win-64的依赖项失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆