我正在尝试使用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
重复