Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pip-install Python Package from Azure Artefact on a Databricks Cluster

I have a small demo package that I've published my to Azure Devops - I'm able to pip install this locally by spinning up a virtual environment and adding the specific global setting to my pip.conf file.

Now, I want to install this into my databricks cluster - I've been unable to find any documentation to do so.

Things to note, this databricks cluster is not within the same tenant as my devops. I've created a token and given it access to read packages within my devops.

I assume I need to add my token & username somewhere in my artifact index url and install it in the cluster PyPi area?

however I can't figure this out

pip install mypackage==0.01 https://tokenname:[email protected]/myorg/mypackage/_packaging/mypackage/pypi/simple/

enter image description here

like image 579
Umar.H Avatar asked Oct 18 '25 02:10

Umar.H


1 Answers

in the screenshot you've provided for installing libraries in the cluster, you just have to input Package: mypackage==0.01

mypackage is the package name of the library. 0.01 is the version

Repository: https://[email protected]/myorg/mypackage/_packaging/mypackage/pypi/simple/

you just need to put the token name here and the rest of the repository where your package lives

like image 122
tgtgtg Avatar answered Oct 19 '25 16:10

tgtgtg



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!