'pip install gitlab' not working

Hi, I am trying to install python packages (on Ubuntu VM) to access gitlab through API.
When I run ‘pip install gitlab’ I get the following error. Couldn’t find any relevant ones on the net.

$ pip install gitlab
Defaulting to user installation because normal site-packages is not writeable
ERROR: Could not find a version that satisfies the requirement gitlab (from versions: 1.0.0, 1.0.1, 1.0.2)
ERROR: No matching distribution found for gitlab

There was some suggestion to try “python3 -m pip install ”, but i got the same error.

Any idea what I should try?

I believe the package you’re looking for is actually named python-gitlab, not gitlab.

You should be able to use one of the following commands to install it:

pip install --upgrade python-gitlab
# OR
python3 -m pip install  python-gitlab
1 Like

Thanks. I went by the import statement given here Getting started with the API - python-gitlab v3.12.0