Sunday, May 19, 2024
 Popular · Latest · Hot · Upcoming
38
rated 0 times [  38] [ 0]  / answers: 1 / hits: 37524  / 2 Years ago, sun, october 30, 2022, 2:10:22

I have upgraded python to version 3.7 and now my terminal is not opening up.



I followed this post https://jcutrer.com/linux/upgrade-python37-ubuntu1810



Commands I ran are as follows,



sudo apt-get install python3.7
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 1
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.7 2
sudo update-alternatives --config python3


Entered 2 for python3.7



I can't open terminal and run commands.



My ubuntu version is, Ubuntu 18.04.2 LTS


More From » 18.04

 Answers
7

This way the upgrade to 3.7 is useless.
You should edit the gnome-terminal file:


Open a terminal and issue the following command:


sudo nano /usr/bin/gnome-terminal

Change #!/usr/bin/python3 to #!/usr/bin/python3.6.


This way you can still use the power of 3.7 and solve the issue with the terminal.


[#5790] Sunday, October 30, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
alliulet

Total Points: 46
Total Questions: 109
Total Answers: 97

Location: Svalbard and Jan Mayen
Member since Sat, Oct 10, 2020
4 Years ago
;