1

I'm started gitlab DevOps implementation. Everything is going fine. Just i am stuck with following error:

pip: command not found

I am started my gitlab pipeline. All stages succeed. Just except below script line where my operation is stucked:

  script:
    - pip install awscli

Error:

$ pip install awscli
bash: line 77: pip: command not found
ERROR: Job failed: exit status 1
Rahul Dapke
  • 345
  • 6
  • 19

3 Answers3

2

Try pip3 install awscli instead of pip install awscli.

If it doesn't help, use sudo apt install python3-pip

  • sudo apt install python3-pip .. sudo: no tty present and no askpass program specified ERROR: Job failed: exit status 1 – Rahul Dapke Dec 20 '19 at 10:19
  • Open up the sudoers file for editing in your favorite editor. vi /etc/sudoers And add your gitlab runner user to the bottom. If you installed your gitlab runner from the official apt repositories then your gitlab-runner process will run under the gitlab-runner user. Add the following to the bottom of the file: gitlab-runner ALL=(ALL) NOPASSWD: ALL –  Dec 20 '19 at 10:28
1

Install pip for your linux distro, more info in the link below:

https://packaging.python.org/guides/installing-using-linux-tools/#installing-pip-setuptools-wheel-with-linux-package-managers

stargazer
  • 36
  • 5
1

https://linuxize.com/post/how-to-install-pip-on-ubuntu-18.04/

Python 3.x

sudo apt update
sudo apt install python3-pip
pip3 --version

python 2.x

pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.6)

sudo apt update
sudo apt install python-pip
pip --version
Avinash Dalvi
  • 8,551
  • 7
  • 27
  • 53
  • I'm still getting this error : sudo: no tty present and no askpass program specified ERROR: Job failed: exit status 1 – Rahul Dapke Dec 20 '19 at 10:20
  • https://askubuntu.com/questions/281742/sudo-no-tty-present-and-no-askpass-program-specified and https://stackoverflow.com/questions/21659637/how-to-fix-sudo-no-tty-present-and-no-askpass-program-specified-error try this for above error. – Avinash Dalvi Dec 20 '19 at 10:24