Combining conda environment.yml with pip requirements.txt

前端 未结 3 1658
傲寒
傲寒 2020-12-02 07:58

I work with conda environments and need some pip packages as well, e.g. pre-compiled wheels from ~gohlke.

At the moment I have two files: environment.yml

3条回答
  •  暖寄归人
    2020-12-02 08:58

    Just want to add that adding a wheel in the directory also works. I was getting this error when using the entire URL:

    HTTP error 404 while getting http://www.lfd.uci.edu/~gohlke/pythonlibs/f9r7rmd8/opencv_python-3.1.0-cp35-none-win_amd64.whl
    

    Ended up downloading the wheel and saving it into the same directory as the yml file.

    name: test-env
    dependencies:
    - python>=3.5
    - anaconda
    - pip
    - pip:
      - opencv_python-3.1.0-cp35-none-win_amd64.whl
    

提交回复
热议问题