问题
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-forgechannel: https://anaconda.org/search?q=openturns and https://anaconda.org/search?q=statistics - However, the
pywinautopackage 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 theconda skeleton pypicommand
来源:https://stackoverflow.com/questions/46412980/conda-build-creating-a-conda-package-fails-on-dependencies-for-platform-win-64