diff --git a/setup.py b/setup.py
index cabbf85af5ba4ff7de38aa407016135c609f7ae5..c7262c1950a6f2d2792af28aba89b01e248fe192 100644
--- a/setup.py
+++ b/setup.py
@@ -2,11 +2,8 @@
 import subprocess
 from setuptools import find_packages, setup
 
-# Clone the lambo repository
-subprocess.call(['git', 'clone', 'https://gitlab.clarin-pl.eu/syntactic-tools/lambo.git', '--depth', '1'])
-
 # Install lambo using pip
-subprocess.call(['pip', 'install', './lambo'])
+subprocess.call(['pip', 'install', 'git+https://gitlab.clarin-pl.eu/syntactic-tools/lambo.git#egg=lambo'])
 
 REQUIREMENTS = [
     'absl-py==0.9.0',