kerondesign.blogg.se

Ubuntu install python 3.6 make it primary
Ubuntu install python 3.6 make it primary











Sample output There are 5 programs which provide 'python'.Įnter to keep the current selection, or type selection number: 2 If you have multiple versions of Python installed, you can use alternatives command to set your default version of Python.įor example, you can run the command below to set your default version of Python. 1 root root 32 Jul 2 19:01 /usr/bin/python3.6m -> /usr/libexec/platform-python3.6m 1 root root 31 Jul 2 19:01 /usr/bin/python3.6 -> /usr/libexec/platform-python3.6 1 root root 25 Jul 16 11:53 /usr/bin/python3 -> /etc/alternatives/python3 To list all available versions of Python, run the command below ls -alh1 /usr/bin/python* lrwxrwxrwx. Python2-setuptools noarch 39.0.1-13.module+el8.4.0+403+9ae17a31 appstream 641 kĬhecking Python 2.x version python2 -V Python 2.7.18 List All Available Python Versions

UBUNTU INSTALL PYTHON 3.6 MAKE IT PRIMARY INSTALL

dnf install python2 Dependencies resolved. Note that Python 2 is no longer supported. To install Python 2.7 simply execute the command below. Python3-setuptools noarch 39.2.0-6.el8 baseos 162 k To install Python 3.6 simply execute the command below dnf install python36 Dependencies resolved. To install Python 3.8 simply execute the command below dnf install python38 Dependencies resolved. Sample output Python 3.9.2 Install Python 3.8 on Rocky Linux 8 Once installed, you can always counter check the installed version of Python, if you dont already have other versions installed python3 -V Package Architecture Version Repository Size To install Python 3.9 on Rocky Linux 8, run the command below dnf install python39 Dependencies resolved. We need CMake to configure the installation, GCC for compilation, Python-devel and Numpy for building Python bindings etc.As of this writing, the default Rocky Linux 8 AppStream repository provides Python 2, Python 3.6, 3.8, and 3.9.

ubuntu install python 3.6 make it primary

You can skip optional dependencies if you don't want. Building OpenCV from sourceĬompiling from source may seem a little complicated at first, but once you succeeded in it, there is nothing complicated.įirst we will install some dependencies. Also at some point in time, if you want to contribute to OpenCV, you will need this.

ubuntu install python 3.6 make it primary ubuntu install python 3.6 make it primary

So for getting latest source codes preference is next method, i.e. With respect to Python API, latest version will always contain much better support and latest bug fixes. For example, at the time of writing this tutorial, apt repository contains 2.4.8 while latest OpenCV version is 3.x. Apt repositories may not contain the latest version of OpenCV always. If the results are printed out without any errors, congratulations !!! You have installed OpenCV-Python successfully.











Ubuntu install python 3.6 make it primary