Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Trouble installing using PIP

Tags:

python-3.x

pip

I'm having trouble importing plotly using pip install. The error I get is as follows:

 The following command must be run outside of the IPython shell:

$ pip install plotly

 The Python package manager (pip) can only be used from outside of IPython.
 Please reissue the `pip` command in a separate terminal or command prompt.

I'm very new to programming, so I simply tried this in the windows command prompt and it said "pip is not recognized as an internal or external command, operable program, or batch file". I'm using Spyder if that helps, but I'm not sure what I'm missing here.

Thanks for your help.

like image 323
user2744315 Avatar asked Dec 07 '25 06:12

user2744315


1 Answers

I guess you forgot to put ! before pip. try:

!pip install plotly

in your notebook, should work.

like image 142
Salman Avatar answered Dec 10 '25 04:12

Salman