0

I have installed anaconda navigator to practice python. When I try to install in ipython console, I used sudo apt-get, I got a syntax error.

sudo apt-get install python-scipy python-numpy python-h5py
  File "<ipython-input-3-a6848822ead4>", line 1
    sudo apt-get install python-scipy python-numpy python-h5py
           ^
SyntaxError: invalid syntax

While installing packages, is it wise to install in ipython console or terminal directly.

If I can install in terminal directly, can I use it in Anaconda navigator (spyder), ipython console. If so, kindly direct me how.

The system is ubuntu 18.04.4 LTS

James Z
  • 11,838
  • 10
  • 25
  • 41
JO7
  • 13
  • 3
  • Does this answer your question? [How to install a Python package from within IPython?](https://stackoverflow.com/questions/8663046/how-to-install-a-python-package-from-within-ipython) – Selcuk Jul 07 '20 at 01:54

0 Answers0