cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Installing a private pypi package from Gitlab on a cluster

djhs
New Contributor III

I have published a pypi package in a private Gitlab repository and I want to install it in my notebook but I don't know how and the documentation doesn't help me much either. I have created a Gitlab token that I use in the index url and I try to install the package with the following line:

!pip install {package_name} --index-url https://__token__:{token}@gitlab.com/api/v4/projects/{project_id}/packages/pypi/simple

Where {token} is my Gitlab token and {project_id} is the Gitlab project ID.

This gives me:

Looking in indexes: https://__token__:****@gitlab.com/api/v4/projects/{project_id}/packages/pypi/simple ERROR: Ignored the following versions that require a different python version: 0.1.0 Requires-Python >=3.11,<4.0 ERROR: Could not find a version that satisfies the requirement {package-name} (from versions: none) ERROR: No matching distribution found for {package-name}

The command runs successfully locally.

 

1 ACCEPTED SOLUTION

Accepted Solutions

djhs
New Contributor III

This problem was solved by removing the `python>=3.11` requirement.

View solution in original post

1 REPLY 1

djhs
New Contributor III

This problem was solved by removing the `python>=3.11` requirement.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group