The tramp does not set the pip at the time of granting

Here is mine bootstrap.sh:

#!/usr/bin/env bash

apt-get update
apt-get install -y apache2
apt-get install python-pip

if ! [ -L /var/www ]; then
  rm -rf /var/www
  ln -fs /vagrant /var/www
fi

Here is my Vagrantfile:

Vagrant.configure("2") do |config|
  config.vm.box = "hashicorp/precise64"
  config.vm.provision :shell, path: "bootstrap.sh"
end

I ran

vagrant reload --provision
vagrant ssh

but when I type pip, it returns

The 'pip' program is not currently installed. You can install it by typing: sudo apt-get install python-pip

I confirmed that I could

sudo apt-get install library

in the ssh terminal, so I'm not sure what is wrong.

Any help would be appreciated.

+4
source share
1 answer

Try replacing apt-get install python-pipwith apt-get -y install python-pip, as Chris said in the comments.

+6
source

Source: https://habr.com/ru/post/1627235/


All Articles