0

我正在为我的 PyPI 包创建一个构建

> conda skeleton pypi myPackage
> conda build --python 3.5 myPackage

我收到以下错误:

BUILD START: myPackage-py33_0
updating index in: /data/anaconda2/conda-bld/linux-64
updating index in: /data/anaconda2/conda-bld/noarch
Can't build /home/user/myPackage due to unsatisfiable dependencies:
Package missing in current linux-64 channels:
  - mysqlclient

所以我从 PyPI 构建了 mysqlclient ,这使我能够成功构建myPackage

> conda skeleton pypi mysqlclient
> conda build --python 3.5 mysqlclient

然后我启动我的新 conda env 并尝试安装我的包

> conda install -c wwbp myPackage
Fetching package metadata .........
Solving package specifications: .
PackageNotFoundError: Package not found: '' Dependency missing in current linux-64 channels:
  - myPackage 1.0.dev24* -> mysqlclient

You can search for packages on anaconda.org with

    anaconda search -t conda mysqlclient

然后我必须先安装 mysqlclient 然后再安装 myPackage

> conda install -c bioconda mysqlclient
> conda install -c wwbp myPackage

有没有办法在 myPackage 中包含这个 mysqlclient 版本?我希望能够通过一次安装调用来安装它。

4

1 回答 1

1

您只需将您的mysqlclient包裹上传到上传到的同一频道myPackage。然后conda install -c mychannel myPackage将(应该)在同一频道中找到依赖项。

于 2016-10-21T02:35:02.413 回答