bdist_conda无法安装依赖项

时间:2019-02-20 20:22:05

标签: conda packaging distutils

我正在尝试使用python setup.py bdist_conda构建一个conda软件包。

## Package Plan ##

  environment location: /Applications/anaconda3/conda-bld/bdist_conda_1550693590209/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place


The following NEW packages will be INSTALLED:
     ...
     ...


export SRC_DIR=/Applications/anaconda3/conda-bld/bdist_conda_1550693590209/test_tmp
Traceback (most recent call last):
  File "/Applications/anaconda3/conda-bld/bdist_conda_1550693590209/test_tmp/run_test.py", line 2, in <module>
    import slideslicer

import numpy as np
ModuleNotFoundError: No module named 'numpy'

Numpy不会出现在The following NEW packages will be INSTALLED下。

我的setup.py包含

from distutils.core import setup
import distutils.command.bdist_conda

setup(
    install_requires=['openslide_python', 'Pillow>=5.0.0', 'pycocotools',
                      'shapely', 'opencv-python', #'beautifulsoup4>=4.6.0',
                      'scikit-image>=0.14.1', # used solely in hsv_histeq.py
                      'descartes',
                      'matplotlib','numpy','pandas', 'lxml'],
     ...)

也与setup_requires重复

0 个答案:

没有答案