问题
I am building a Python package using conda-build. Right now my structure looks like this:
- my_recipe/
- meta.yaml
- build.sh
And my meta.yaml reads thusly:
package:
name: my_pkg
version: "0.2.0"
source:
path: ../my_pkg
requirements:
build:
- python
- setuptools
run:
- python
- pandas
- numpy
- plotly
- matplotlib
- pyqtgraph
- pyopengl
- gdal
- scipy
- scikit-image
The package itself builds correctly when I run
conda-build my_recipe/
and it installs succesfully when I run
conda install -n my_env --use-local ~/miniconda3/envs/my_env/conda-bld/linux-64/my_pkg-0.2.0-py36_0.tar.bz2
However, none of the dependencies listed under run seem to install along with the package (for example, when I import the package in Python it says that pandas could not be found).
Are my dependencies listed in the correct location? Do I also need to list the dependencies in setup.py? The documentation is not very clear on where this information should be.
来源:https://stackoverflow.com/questions/49823033/conda-dependencies-do-not-install-on-local-package-build