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
Oh, 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/
https://devblogs.microsoft.com/azure-sdk/python-conda-sdk-preview/
xenek
Jul 22, 2024Copper Contributor
I 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')
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. 🙂