Linked Questions

32 votes
1 answer
159k 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/...
user avatar
  • 1,633
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 ?
user avatar
0 votes
2 answers
15k 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 ...
user avatar
1 vote
1 answer
18k 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 ...
user avatar
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 ...
user avatar
  • 21
0 votes
1 answer
4k 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 ...
user avatar
  • 31
-1 votes
2 answers
1k 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?
user avatar
3 votes
1 answer
671 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-...
user avatar
  • 461
0 votes
0 answers
160 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?
user avatar
  • 162
1 vote
0 answers
150 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 ...
user avatar
  • 171
0 votes
0 answers
96 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-...
user avatar
  • 197
1 vote
0 answers
50 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 ...
user avatar
440 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.
user avatar
  • 4,543
39 votes
3 answers
117k 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 ...
user avatar
  • 533
60 votes
2 answers
51k 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....
user avatar
  • 1,221

15 30 50 per page