Linked Questions

28
votes
1answer
131k 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/...
4
votes
1answer
41k 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 ?
0
votes
1answer
2k 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 ...
0
votes
1answer
5k 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 ...
1
vote
0answers
5k 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 ...
-2
votes
2answers
274 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
1answer
105 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-...
0
votes
0answers
73 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
0answers
70 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-...
339
votes
8answers
740k 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.
189
votes
6answers
383k views

How to choose the default gcc and g++ version?

So I have installed gcc-4.4 and gcc-4.3 (same for g++). Now as far as I remember there is a tool in Ubuntu which sets the symlinks for you if you just tell it which version you want. However it does ...
2
votes
1answer
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
2answers
2k 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
votes
1answer
879 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 ...
1
vote
0answers
879 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 ...

15 30 50 per page