From eafe839e8442c005111bff0c5d5124d55205cd62 Mon Sep 17 00:00:00 2001 From: gryf Date: Tue, 14 Jul 2020 09:46:20 +0200 Subject: [PATCH] Fix issues with python3 --- bootstrap.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bootstrap.sh b/bootstrap.sh index 5316930..1310d11 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -144,6 +144,7 @@ ubuntu() { ;; '18.04') PGS=(ipython3 + python3-pip tmate vim-gtk) ;; @@ -165,8 +166,13 @@ ubuntu() { # 3. cleanup sudo apt-get autoremove -y && sudo apt-get autoclean -y - # 4. set default editor + # 4. change alternatives sudo update-alternatives --set editor /usr/bin/vim.basic + sudo update-alternatives --remove-all python + sudo update-alternatives --set editor /usr/bin/vim.basic + sudo update-alternatives \ + --install /usr/bin/python python /usr/bin/python3.6 10 + sudo update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 10 # 5. install tools from pypi sudo pip install pip --upgrade