Linked Questions
25 questions linked to/from How to make 'python' program command execute Python 3?
33
votes
1
answer
160k
views
How to set python 3 as default interpreter in Ubuntu 14.04 [duplicate]
I am working with Ubuntu 14.04 LTS on EC2. I want to change the default python interpreter from python 2.7 to 3.4.0 which is installed by default.
When I do:
/home/ubuntu$ which python
/usr/bin/...
3
votes
2
answers
39k
views
Why can't I install Python 3.8? [duplicate]
When I try to install Python 3.8 terminal says it is done, but when I run python --version it says Python 3.7.
(base) user@admin:~$ sudo apt-get install python3.8
Reading package lists... Done
...
4
votes
1
answer
52k
views
how to tell ubuntu to use python 3.4 instead of 2.7? [duplicate]
I have python 2.7 and 3.4 versions installed.
But when I say say "python -V", it shows version as 2.7 not 3.4
How to tell ubuntu to use newest python? where is this setting configured ?
1
vote
1
answer
24k
views
Python 3 as default Python command [duplicate]
I am using Visual Studio Code for my Python programming and the problem that I am facing is that on terminal when I type the command python, by default Python 2.7 is loaded. So because of this I am ...
0
votes
1
answer
5k
views
force to use Python 3 [duplicate]
i want to port Python Scripts to python 3. How can i force Ubuntu to use python 3 instead of python 2 which is installed, as well.
Due to the size of the project, i'd prefer not to write something ...
2
votes
0
answers
13k
views
bash: /usr/lib/command-not-found: /usr/bin/python3: bad interpreter: No such file or directory [duplicate]
Using Ubuntu 16.04, I have a problem with python3
$ python --version
Python 2.7.12
$ sudo apt-get install python3
Reading package lists... Done
Building dependency tree
Reading state ...
0
votes
2
answers
2k
views
How to install and use packages under a different name? [duplicate]
How do I install packages such as python3, and use them under a different name like python?
3
votes
1
answer
1k
views
Which Python is running? [duplicate]
I've just now installed Python 3.7 and I'd like to understand why I get the following output from bash:
g-luca@hp-notebook:~$ python3.7 -V
Python 3.7.0
g-luca@hp-notebook:~$ python3 -V
Python 3.5.2
g-...
1
vote
0
answers
172
views
Python3: how can I set python 3.6 as default? [duplicate]
I have installed python 3.6 in an Ubuntu 16.04 platform that had previously python 3.5
now if I check the installed version I have:
ls -l /usr/bin/python*
lrwxrwxrwx 1 root root 9 Nov 24 2017 ...
0
votes
0
answers
161
views
Could alias python=python3 in my bashrc cause problems? [duplicate]
I would like to use python3 as my default python when working with the terminal. If I added the line alias python=python3 in my ~/.bashrc, could that cause problems with other programs?
0
votes
0
answers
105
views
Python 3.6.1 Update System (IDLE, console..) [duplicate]
I have installed python3.6.1 I want to make it the default for the system when python is called. I also want IDLE to open to that version.
After installing python3.6.1:
Requirement already up-to-...
1
vote
0
answers
61
views
how to make python3 the default python? system wide not for a specific user [duplicate]
with python 2 reaching EOL how to make python3 the default python ? ... system wide not just a specific script
should we do a symbolic link ?
sudo ln -s /usr/bin/python3 /usr/local/bin/python
or ...
451
votes
9
answers
1.1m
views
How do I install Python 3.6 using apt-get?
I've tried the normal way, sudo apt-get install python3.6, but... well... that didn't work.
So, how would I go about it? (I'd preferably not build it on my own)
I'm using Ubuntu 16.04.
60
votes
5
answers
217k
views
python installed in ubuntu but python command not found
I have installed python 2.7 and python 3.7 in my ubuntu 18.04 but when i
type python it shows
Command 'python' not found, but can be installed with:
sudo apt install python3
sudo ...
109
votes
2
answers
151k
views
python-is-python3 package in Ubuntu 20.04 - what is it and what does it actually do?
Having used Ubuntu 18.04 for a handful of years now, and reading that Python 2 has been removed from Ubuntu 20.04, I was looking forward to using the commands python or pip rather than python3 or pip3....
6
votes
1
answer
8k
views
Lower the Python3 version
I'm using Ubuntu 20.04 and default Python3 version is 3.8.2 but I want to use the Python 3.7.6 .
I don't care if the Python 3.8.2 will be uninstalled or not. I only want to make sure every time I use ...
-1
votes
1
answer
4k
views
Terminal not working after deleting python [duplicate]
Earlier, my default Python version was python2.7.
To upgrade it, I deleted python from /usr/bin/ and renamed python3.6 as python in the same directory.
Afterwards, my terminal stopped working.
It ...
1
vote
2
answers
4k
views
How to update system python 2.7 to 3.x in Ubuntu 20.x after upgrade
I have an old VM that started out as Ubuntu 16.x then I upgraded it to the 18x series and now 20.x series. I was surprised that python 2.7 was still the system python.
I discovered that if you upgrade ...
2
votes
1
answer
3k
views
How to set python 3 as default interpreter while working with rPython
I have Anaconda installed in my system with Python 3.5.
When I run:
$ which python
in the terminal, it correctly shows the intended one i.e. the one within Anaconda. When typed:
$ python --...
-1
votes
2
answers
3k
views
Shifting between alternate versions of Python in Ubuntu
I am new to ubuntu and I wanted to shift my version to Python 3.4.1.
So I ran the command:
$ sudo update-alternatives --config python
update-alternatives: error: no alternatives for python
But then ...
1
vote
0
answers
2k
views
How to change default idle for python?
Okay, so I have python 3.5 on my system. Whenever I open a .py file, Idle3 starts, thus pressing F5 will instantly run my code.
However I need python 2.7 now for an assignment. In terminal I've ...
0
votes
1
answer
1k
views
Still having the version 2.7 after install the version 3.6 of python
After installed python 3.6 from the the edwinksl's answer (How do I install Python 3.6 using apt-get?), I tried to test out the version of python on my computer with pip --version where I got the ...
0
votes
1
answer
560
views
Python command starts python3 but no alias is set
When I type python into my Ubuntu 18.04 terminal, python3 starts. The thing is I haven't set an alias for python, e.g. see here. Could anyone explain to me how is this possible and what I would need ...
0
votes
0
answers
175
views
Installing then immediately uninstalling "python" breaks Ubuntu 23.04 Desktop
I completely broke my 2-month-old 23.04 installation today.
Steps:
Needed python for something so python -> Command 'python' not found...
Installed python sudo apt install python
Noticed it ...
1
vote
0
answers
99
views
eye of gnome, randomize slideshow plugin not working (pluginloader python3 not found)
Well as per title, I tried to use the randomize plugin for slideshows for eye of gnome
https://help.gnome.org/users/eog/stable/plugins.html.en
apt-get install eog-plugins
However when I now try to ...