You May hangover by How/ Step to install new Python Package from inside of IPython. Nothing to worry. We are here for Good Solution.
When you are try
pip install packagename
It’ll returns following error:
SyntaxError: invalid syntax
! (Exclamation Mark) as a prefix of pip. For example,
!pip install packagename
! (Exclamation Mark) is the short-hand for
%sc command to run the shell commands.