OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

How to change python3 to default in linux mint

  • Thread starter Thread starter Michał
  • Start date Start date
M

Michał

Guest
I have a little problem with changing python3 to default in newly installed operating system linux Mint 19.3. It was pretty easy on Ubuntu 16.04 but now I need small help here.

So, I run

Code:
python --version

and got this

Code:
Python 2.7.15+

Than I run

Code:
python3 --version

and this was the result

Code:
Python 3.6.8

After entering this command

Code:
sudo update-alternatives --config python

I received obvious info

Code:
update-alternatives: error: no alternatives for python

Both version of python are located in /usr/bin folder. The issue occurs when I'm trying to change python3 to as a default by typing the command

Code:
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.6

The terminal outputs the following

Code:
update-alternatives: --install needs <link> <name> <path> <priority>

Any help here would be welcome.
<p>I have a little problem with changing python3 to default in newly installed operating system linux Mint 19.3. It was pretty easy on Ubuntu 16.04 but now I need small help here. </p>

<p>So, I run </p>

<pre><code>python --version
</code></pre>

<p>and got this </p>

<pre><code>Python 2.7.15+
</code></pre>

<p>Than I run </p>

<pre><code>python3 --version
</code></pre>

<p>and this was the result</p>

<pre><code>Python 3.6.8
</code></pre>

<p>After entering this command</p>

<pre><code>sudo update-alternatives --config python
</code></pre>

<p>I received obvious info</p>

<pre><code>update-alternatives: error: no alternatives for python
</code></pre>

<p>Both version of python are located in /usr/bin folder.
The issue occurs when I'm trying to change python3 to as a default by typing the command</p>

<pre><code>sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.6
</code></pre>

<p>The terminal outputs the following</p>

<pre><code>update-alternatives: --install needs <link> <name> <path> <priority>
</code></pre>

<p>Any help here would be welcome.</p>
 

Latest posts

Top