I am trying to install the linearmodels package on Jupyter notebook using the following code:
JavaScript
x
2
1
pip install linearmodels
2
but I am getting the following error message:
JavaScript
1
5
1
File "<ipython-input-47-dc9347e29b91>", line 1
2
pip install linear models
3
^
4
SyntaxError: invalid syntax
5
Can you anyone please help me with this?
After installing the linearmodels package I’ll be importing a two-stage instrumental variables regression:
JavaScript
1
2
1
from linearmodels.iv import IV2SLS
2
Advertisement
Answer
To install packages for Jupyter notebooks there are a couple of ways of approaching it. One way is to pip install
from the terminal.
The other (proper) way is to use Conda install as explained here – updated link 21-Sep-2019