You can use the !
prefix like this:
!pip install packagename
The !
prefix is a short-hand for the %sc
command to run a shell command.
You can also use the !!
prefix which is a short-hand for the %sx
command to execute a shell command and capture its output (saved into the _
variable by default).
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…