0

I just updated my jupyter notebook using conda and tried to import numpy library

import numpy as np

but it was an error with message

ModuleNotFoundError: No module named 'numpy'

Then I tried to install packages thinking it is needed after an update in jupyter notebook using

pip install numpy

It was an error with message

"C:\.....path" is not recognized as an internal or external command,
operable program or batch file

Then I found somewhere on web asking to use

!pip install numpy

And it worked

My question being what did "!pip install numpy" do differently compared to "pip install numpy"

Ullas
  • 3
  • 4
  • https://stackoverflow.com/questions/53498226/what-is-the-meaning-of-exclamation-and-question-marks-in-jupyter-notebook – techytushar Oct 08 '20 at 13:51
  • Read documentation on 'shell commands' in jupyter notebook. – Scott Boston Oct 08 '20 at 13:51
  • You can't directly run terminal commands in a notebook. You need to use the magic command `%system` for that. `!some_command` is just an alternative to that – yatu Oct 08 '20 at 13:51
  • It means run it as a shell command rather than a notebook command –  Oct 08 '20 at 13:57

0 Answers0