[LINUX] In the python command python points to python3.8

When you enter a Python command on linux, it defaults to /usr/bin/python2.7. For ease of use, create a [symlink] and the python command points to python3. [Symlink]: https://en.wikipedia.org/wiki/%E3%82%BD%E3%83%95%E3%83%88%E3%83%AA%E3%83%B3%E3% 82% AF

Notes for amnestic patients: head_bandage:

#Show python version
$ python -V
Python 2.7

#Delete the original symbolic link
$ sudo rm -rf /usr/bin/python

#Search python related files
$ whereis python
python: /usr/bin/python /usr/bin/python2.7 /usr/bin/python3.6.5 /usr/bin/python3.8.5 

#Create a symbolic link
$ sudo ln -s /usr/bin/python3.8 /usr/bin/python

#Show python version
$ python -V
Python 3.8.5

The same is true for pip ~~

Recommended Posts

In the python command python points to python3.8
Learn the design pattern "Command" in Python
[Python] Solving the import problem due to the difference in entry points
How to use the C library in Python
How to receive command line arguments in Python
How to implement Discord Slash Command in Python
To dynamically replace the next method in python
Draw graphs in Julia ... Leave the graphs to Python
The trick to write flatten concisely in python
How to get the files in the [Python] folder
I want to display the progress in Python!
How to hide the command prompt when running python in visual studio 2015
To flush stdout in Python
Find the difference in Python
Login to website in Python
Execute external command in python
Speech to speech in python [text to speech]
External command execution in Python
How to develop in Python
Post to Slack in Python
How to retrieve the nth largest value in Python
I tried to graph the packages installed in Python
[For beginners] How to use say command in python!
How to get the variable name itself in python
How to get the number of digits in Python
How to know the current directory in Python in Blender
Convert the image in .zip to PDF with Python
I want to write in Python! (3) Utilize the mock
How to use the model learned in Lobe in Python
How to execute a command using subprocess in Python
[Python] How to output the list values in order
To do the equivalent of Ruby's ObjectSpace._id2ref in Python
I want to use the R dataset in python
Python OpenCV tried to display the image in text.
How to pass the execution result of a shell command in a list in Python
Programming to fight in the world ~ 5-1
Programming to fight in the world ~ 5-5,5-6
Leave the troublesome processing to Python
Programming to fight in the world 5-3
[Python] How to do PCA in Python
[python] How to check if the Key exists in the dictionary
Getting the arXiv API in Python
Hit a command in Python (Windows)
Output "Draw ferns programmatically" to the drawing process in Python
How to debug the Python standard library in Visual Studio
Convert markdown to PDF in Python
Detect mosaic points in the image
Python in the browser: Brython's recommendation
Save the binary file in Python
How to collect images in Python
Hit the Sesami API in Python
Run shell command / python in R
How to use the __call__ method in a Python class
Change the standard output destination to a file in Python
Get the desktop path in Python
How to use SQLite in Python
Programming to fight in the world-Chapter 4
Get the script path in Python
Implement the Singleton pattern in Python
Various ways to calculate the similarity between data in python
What to do if the print command itself causes an error in Maya python