gpt4 book ai didi

python - Vagrant 在提供期间没有安装 pip

转载 作者:太空狗 更新时间:2023-10-30 00:54:44 29 4
gpt4 key购买 nike

这是我的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

这是我的 Vagrantfile:

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

我跑了

vagrant reload --provision
vagrant ssh

但是当我输入 pip 时它返回

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

我确认我能够

sudo apt-get install library

在 ssh 终端,所以我不确定哪里出了问题。

如有任何帮助,我们将不胜感激。

最佳答案

尝试将 apt-get install python-pip 替换为 apt-get -y install python-pip 正如 Chris 在评论中所说的那样。

关于python - Vagrant 在提供期间没有安装 pip,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35191289/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com