使用 PIP 安装时遇到问题

use*_*315 3 pip python-3.x

我在使用 pip install 导入时遇到问题。我得到的错误如下:

 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.
Run Code Online (Sandbox Code Playgroud)

我对编程非常陌生,所以我只是在 Windows 命令提示符中尝试了这个,它说“pip 不被识别为内部或外部命令、可操作程序或批处理文件”。我正在使用 Spyder(如果有帮助的话),但我不确定我在这里缺少什么。

感谢您的帮助。

小智 6

我猜你忘了放!在点之前。尝试:

!pip install plotly
Run Code Online (Sandbox Code Playgroud)

在你的笔记本上,应该可以工作。