Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install new package from inside ipython Notebook [duplicate]

I am new to Python. I wonder if is it possible to install a new package from inside iPython Notebook.

I tried pip install address but it returns error:

pip install address
              ^
SyntaxError: invalid syntax
like image 920
AdamNYC Avatar asked May 19 '14 17:05

AdamNYC


1 Answers

Yes you can

Use the following syntax:

!pip install packagename

Reference thread

like image 73
Union find Avatar answered Nov 03 '22 06:11

Union find