Using conda with pip in the same

2019-05-15  本文已影响0人  ThomasYoungK

If you use environment.yml, then Binder will use a Miniconda distribution to install your packages. However, you may still want to use pip. In this case, you should not use a requirements.txt file, but instead use a - pip section in environment.yml. This repository is an example of how to construct your environment.yml file to accomplish this.

environment.yml

name: example-environment
channels:
  - conda-forge
dependencies:
  - python
  - numpy
  - pip
  - pip:
    - nbgitpuller
    - sphinx-gallery
    - pandas
    - matplotlib

参考文献:https://github.com/binder-examples/python-conda_pip

上一篇下一篇

猜你喜欢

热点阅读