Reputation: 27
I followed these steps in trying to install python but then all of a sudden my terminal won't open. What might be the problem and how can I fix it?
sudo apt-get update
sudo apt-get install python3.6
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.5 1
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 2
sudo update-alternatives --config python3
sudo rm /usr/bin/python3
sudo ln -s python3.5 /usr/bin/python3
Upvotes: 1
Views: 324
Reputation: 1730
I suspect problem in this line:
sudo ln -s python3.5 /usr/bin/python3
Did you execute it from the directory with a python3.5 binary?
Upvotes: 1