![]() ![]() You can change it to some other path such as /usr/bin/python if you want. Here, /usr/local/bin/python is the binary path of the python alternatives. Sudo update-alternatives -install path/to/symlink command_name path/to/command_binary priority $ sudo update-alternatives -install /usr/local/bin/python python /usr/bin/python2 10 How create a new alternatives python and install Python 2 interpreter /usr/bin/python2 as an alternative with the priority 10 as follows: ![]() The Python version that will be used by default can then be readily adjusted and it can also be switched simply. You can create a new Python executable ( /usr/local/bin/python) and add every Python version that is currently available to the alternatives database by using the update-alternatives command. Let's say you have Python 2 and Python 3 installed on your PC as an example. ![]() Docker - docker run cmd.cat/update-alternatives update-alternatives The general syntax of update-alternatives command: update-alternatives command.Debian/Ubuntu/Raspbian - apt-get install dpkg.The update-alternatives command is a part of a package manager utility and it is installed with dpkg/ chkconfig package: This provides system users the option to choose their editor of choice if they so choose, but also makes it challenging for a program to choose an editor to invoke if the user has not indicated a specific preference How to install update-alternatives command? For instance, many systems simultaneously have multiple text editors installed. Multiple programmes that perform the same or related functions may be installed simultaneously on a single system. The symbolic links that make up the package alternatives system are created, removed, maintained, and shown using the update-alternatives command. If you have two or more versions of the same command, you can quickly switch between them and choose which one to run by default by using update-alternatives. Create A Linux File Using The Command Line.Install and Use PHP Composer on Ubuntu 18.04.Install and Configure GitLab on Ubuntu 18.04.Move Files In Linux Using The mv Command.Exclude Files And Directory Using Rsync.How to Check Disk Space Using Df Command.Install Visual Studio Code on Debian 10. ![]()
0 Comments
Leave a Reply. |