Linked Questions

31
votes
1answer
152k 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
49k 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
11k 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 ...
2
votes
0answers
11k 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
1answer
3k 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
2answers
696 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
311 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
139 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?
1
vote
0answers
123 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
0answers
93 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-...
0
votes
0answers
55 views

Sublime 3: When trying to run Python code, “python: command not found” [duplicate]

I am using SublimeText 3, and I downloaded python3.8.3. In Pycharm everything is working properly, but in Sublime I get the following message: bash: python: command not found [Finished in 0.0s with ...
1
vote
0answers
34 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 ...
397
votes
9answers
907k 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.
4
votes
2answers
6k 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 ...
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 --...

15 30 50 per page