简体   繁体   English

如何在python中安装wordcloud包?

[英]how to install wordcloud package in python?

pip install wordcloud
  File "<ipython-input-130-12ee30540bab>", line 1
    pip install wordcloud
              ^
SyntaxError: invalid syntax

This is the problem I am facing while using pip install wordcloud .这是我在使用pip install wordcloud时面临的问题。

pip is a tool used for installing python packages. pip是一个用于安装 python 包的工具。 You should not use this command inside the python interactive shell.您不应在 python 交互式 shell 中使用此命令。

Instead, exit out of it and write pip install wordcloud on the main shell.相反,退出它并在主外壳上编写pip install wordcloud

或者从 jupyter notebook/lab 使用以下命令:

!pip install wordcloud

missing the !错过了! in front of pip if doing it in python instead of shell如果在 python 而不是 shell 中执行,则在 pip 前面

嘿我仍然卡住机器返回“退出错误”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM