The Python package manager (pip) can only be used from outside of IPython. code example
Example: The Python package manager (pip) can only be used from outside of IPython.
For installing packages in Ipython just always type "!" before command:
!pip install packagename