Forum Discussion
apjanke
Mar 06, 2023Copper Contributor
Finding Azure Batch Python client in Conda packaging
I've started working with Azure Batch and use Python, with my Python environment managed by Anaconda. I'd like to install the https://learn.microsoft.com/en-us/python/api/overview/azure/batch-readme?...
xenek
Jul 22, 2024Copper Contributor
I also have hit a snag trying to prep up an old macbook.
I've got condanavigator, and thought I could add the microsoft channel then select some options to configure a python environment suitable for CLI and powershell access through to automate or at least, explore and interact with features of services within a trial Azure environment - particularly Purview. I thought, breeze in, tick some boxes, get started. Nope!
Adding the environment was easy enough, but then when I ticked azure, & azure storage, I hit snags. no doubt easy to resolve, but they do suggest there is more to the use of Azure in Conda with Python support than it seems. As per below:
LibMambaUnsatisfiableError: Encountered problems while solving:
- package azure-1.0.2-py27_1 requires python >=2.7,<2.8.0a0, but none of the providers can be installed
Could not solve for environment specs
The following packages are incompatible
├─ azure is installable with the potential options
│ ├─ azure 1.0.2 would require
│ │ └─ python >=2.7,<2.8.0a0 , which can be installed;
│ ├─ azure 1.0.2 would require
│ │ └─ python >=3.5,<3.6.0a0 , which can be installed;
│ └─ azure 1.0.2 would require
│ └─ python >=3.6,<3.7.0a0 , which can be installed;
└─ pin-1 is not installable because it requires
└─ python 3.12.* , which conflicts with any installable versions previously reported.
Pins seem to be involved in the conflict. Currently pinned specs:
- python 3.12.* (labeled as 'pin-1')
Edit: tidy
- xenekJul 22, 2024Copper ContributorOh, forgot to mention: This seems to be the authoritative page. I guess the word 'preview' is the one to keep in mind.
https://devblogs.microsoft.com/azure-sdk/python-conda-sdk-preview/- xenekJul 22, 2024Copper ContributorI removed the Microsoft channel, then ticked three azure environment items from the built-in base (root) environment, and received the same errors.
LibMambaUnsatisfiableError: Encountered problems while solving:
- package azure-1.0.2-py27_1 requires python >=2.7,<2.8.0a0, but none of the providers can be installed
Could not solve for environment specs
The following packages are incompatible
├─ azure is installable with the potential options
│ ├─ azure 1.0.2 would require
│ │ └─ python >=2.7,<2.8.0a0 , which can be installed;
│ ├─ azure 1.0.2 would require
│ │ └─ python >=3.5,<3.6.0a0 , which can be installed;
│ └─ azure 1.0.2 would require
│ └─ python >=3.6,<3.7.0a0 , which can be installed;
└─ pin-1 is not installable because it requires
└─ python 3.12.* , which conflicts with any installable versions previously reported.
Pins seem to be involved in the conflict. Currently pinned specs:
- python 3.12.* (labeled as 'pin-1')- xenekJul 22, 2024Copper ContributorRe-adding or removing the Microsoft channel doesn't change the number of installed or installable applications.
So I guess what's missing is for someone at Microsoft who intimately knows the different components (environment options that work the Python-Conda-SDK, if in preview or not), to create a microsoft azure conda exploration application, one that you can use to begin to explore the SDK - that eg. I could start up, to then install & run the CLI or the Powershell found here:
It looks like the sequence goes...
Developer agreement (no, I don't agree, but tick box anyway) Xcode, CLT, Bash, Homebrew,
then Azure-CLI - hmmm, but that's not the python/conda constrained environment - though I guess it might work within that.
I assume it's faster to go Powershell Gallery on MacOS, then az-powershell, then use cmdlets, but that's a different thing altogether.
It's all a bit of a mess, like untangling spaghetti, but where you can only try to untangle it with your face while your eyes are closed. 🙂