azure-functions-python-worker icon indicating copy to clipboard operation
azure-functions-python-worker copied to clipboard

[packapp] Support conda install

Open asavaritayal opened this issue 5 years ago • 23 comments

If environment.yaml is present, conda install the dependencies instead of pip install-ing them.

asavaritayal avatar Feb 08 '19 21:02 asavaritayal

@elprans correct me if I'm wrong but the Conda repository only offers pre-built wheels, so there is no requirement for --build-native-deps path on this one right?

asavaritayal avatar Feb 08 '19 21:02 asavaritayal

Any news on this issue?

daguito81 avatar Dec 05 '19 09:12 daguito81

Would love to see any update/news on this feature.

yubozhao avatar Jun 03 '20 05:06 yubozhao

@anirudhgarg @vrdmr Do you have the latest guidance on this?

anthonychu avatar Jun 03 '20 14:06 anthonychu

I would also be very much interested in this!

georghildebrand avatar Jul 15 '20 08:07 georghildebrand

Hey @anirudhgarg @vrdmr we are also waiting for conda support because some dependencies like geopandas cannot be installed over pip install command.

Please an update!?

martikevin avatar Aug 13 '20 12:08 martikevin

Also waiting for this, as turbodbc fails with pip (cannot find wheel, so tries to build, but then fails on dependence pybind11, https://github.com/blue-yonder/turbodbc/issues/59)

yputter avatar Aug 17 '20 13:08 yputter

Would also love to see an update on this feature request.

martinjoshua avatar Sep 25 '20 15:09 martinjoshua

Also waiting for this, as scikit-garden is failing with pip

Servot avatar Nov 05 '20 13:11 Servot

We end up using custom Dockerfile. You can find what we did here: https://github.com/bentoml/BentoML/blob/master/docker/azure-functions/Dockerfile

Basically, build on top this and add miniconda

yubozhao avatar Nov 06 '20 21:11 yubozhao

I'm also holding out for this - would love Azure functions to have the same support for conda environments as Azure ML.

owenlamont avatar Feb 14 '21 15:02 owenlamont

Hi @owenlamont, we are planning to publish an image with conda dependencies that you could use in custom container on a premium plan. Would that work for you? or you're planning to use consumption plan?

stefanushinardi avatar Feb 15 '21 02:02 stefanushinardi

Hi @stefanushinardi - I'm ignorant of what plan my workplace has. I'll have to enquire with the with our data engineering team.

I was aware conda environments could be used by specifying a custom container Docker image but I had hoped I could let Azure Functions abstract Docker away and it would work as written on the description of this ticket - that I could just replace the requirements.txt with an environment.yml and everything else would auto-magically work.

owenlamont avatar Feb 15 '21 12:02 owenlamont

I see, got it. I dont have a timeline for that yet, but appreciate the nudge. Will discuss internally about the support. cc: @vrdmr @Hazhzeng @AnatoliB

stefanushinardi avatar Feb 16 '21 21:02 stefanushinardi

My general experience is that the conda ecosystem (base, conda-forge, etc.) seems to work a bit better in general. I think more of the community's testing happens on these packages as opposed to pip packages. My feeling is that adding support for an environment.yaml file is pretty critical. I ran into similar limitations with revoscalepy and finding it only supported packages from the pip ecosystem. Perhaps there is a general misconception about the prominence of pip at MS?

kyle-pena-nlp avatar Sep 07 '21 18:09 kyle-pena-nlp

Is there any news on this ? I use conda for my environment management and I frankly don't see my self going back to venv, it's a weird choice to force user to use an environment manager.

abouroubi avatar Dec 23 '21 17:12 abouroubi

years passed but nothing.

yuhaodai avatar Dec 27 '21 22:12 yuhaodai

would love this implemented as well!

MarkTensenSgt avatar Apr 01 '22 14:04 MarkTensenSgt

@anthonychu any news on this ? It's been 3 years ...

abouroubi avatar Apr 01 '22 14:04 abouroubi

Yes - I'm pretty new to python, but it seems that conda is the superior environment and package manager over pip and venv. It is disappointing that we have to resort to using docker images to utilise the best tools for the job.

+1 from me to include this feature in Azure Functions.

athinton avatar May 03 '22 15:05 athinton

Also looking for this feature

AaronM44 avatar Aug 01 '22 12:08 AaronM44

Yep, also looking for the same feature. Love conda and rarely ever have issues with it, so it's a significant snag that you need workarounds to be able to use azure-functions with conda...

espenhk avatar Jan 02 '23 14:01 espenhk

4 years in and no change. Have to assume this is profit issue for the business otherwise it is a missed opportunity for adding new projects to Azure Functions.

Kolt45 avatar Feb 27 '23 00:02 Kolt45