Need support?
43
Chapter 1 Install Python Libraries (Required)
█
www.freenove.com
Set Python3 as default python
First, execute python to check the default python on your raspberry Pi. Press Ctrl-Z to exit.
If it is python3, you can skip this section.
If it is python2, you need to execute the following commands to set default python to python3.
1.
Enter directory /usr/bin
cd /usr/bin
2.
Delete the old python link.
sudo rm python
3.
Create new python links to python.
sudo ln -s python3 python
4.
Check python. Press Ctrl-Z to exit.
python
If you want to set python2 as default python in
other projects
, just repeat the above command and change
python3 to python2.
Shortcut Key
Now, we will introduce several shortcuts that are very
useful
and
commonly used
in terminal.
1.
up and down arrow keys
. History commands can be quickly brought back by using up and down arrow
keys, which are very useful when you need to reuse certain commands.
When you need to type command, p
ressing “↑” (the Up key) will go backwards through the command
history and pressing “↓” (the Down Key) will go forwards through the command history.
2.
Tab key
. The Tab key can automatically complete the command/path you want to type. When there are
multiple commands/paths conforming to the already typed letters
, pressing Tab key once won’t have any
result. And pressing Tab key again will list all the eligible options. However, when there is only one eligible
option, the command/path will be completely typed as soon as you press the Tab key..
As shown below, under the ‘~’directory, enter the Documents directory with the “cd” command. After typing
Summary of Contents for Raspberry Pi 2 Model B
Page 35: ...Need support support freenove com 33 Chapter 0 Raspberry Pi Preparation www freenove com ...
Page 71: ...Need support support freenove com 69 Chapter 2 Assemble Robot www freenove com M3 Nut M3x12 ...
Page 98: ...Need support support freenove com 96 Chapter 4 Robot Dog www freenove com ...