Я купил новый ноутбук и хотел запустить свой настольный проект на моей новой машине,
Я запустил «git clone» для моего проекта: https://github.com/MateuszKijewski/to-do-api, а затем, как только он клонировал, я запустил »vagrant up "и" vagrant ssh "
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
# https://docs.vagrantup.com.
# Every Vagrant development environment requires a box. You can search for
# boxes at https://vagrantcloud.com/search.
config.vm.box = "ubuntu/bionic64"
config.vm.box_version = "~> 20190314.0.0"
config.vm.network "forwarded_port", guest: 8000, host: 8000
config.vm.provision "shell", inline: <<-SHELL
systemctl disable apt-daily.service
systemctl disable apt-daily.timer
sudo apt-get update
sudo apt-get install -y python3-venv zip
touch /home/vagrant/.bash_aliases
if ! grep -q PYTHON_ALIAS_ADDED /home/vagrant/.bash_aliases; then
echo "# PYTHON_ALIAS_ADDED" >> /home/vagrant/.bash_aliases
echo "alias python='python3'" >> /home/vagrant/.bash_aliases
fi
SHELL
end
Сначала я подумал, что все работает нормально, но потом увидел, что не могу запустить" pip "или включить виртуальную среду. Я не думаю, что мне следует устанавливать их вручную
Я буду очень признателен за помощь, так как хочу попробовать программирование на моем новом ноутбуке;)