如何在 Anaconda 中安装包(如 tweepy、textblob 等)?

How to install packages (like tweepy, textblob etc.) in Anaconda?

我想使用 Twitter API。但是为了使用那个名为 tweepy 的包应该被安装。
我尝试在 Anaconda 命令提示符下使用命令 conda install tweepy 安装它。
但是每次都安装失败。
谁能告诉我如何在 Anaconda 中安装软件包。

以下方法适用于 Windows:

第 1 步:Click on start

第 2 步:Search and Open Anaconda Navigator

第 3 步:在 Anaconda Navigator 中,Go to Evironments

第 4 步:There is a drop down menu consisting of options : 1) Installed 2) Not Installed 3) Upgradable 4) Selected 5) All

第 5 步:Click on "Not Installed"

第 6 步:There is a block stating Search Packages, there enter the name of the package you want to install.

第 7 步:Mark the name of the package to be installed in the search results, and click Apply

安装将开始。

恭喜!您已成功安装包。

我无法使用 Anaconda 安装 tweepy。我在 Mac 上使用 Anaconda 发行版。我试过 pip install tweepy 并且安装时没有错误消息。

你可以试试:

conda install -c conda-forge tweepy 

来源:tweepy