安装在conda中找不到的软件包

27

我正在使用Anaconda作为Python 3.6的环境,并试图安装python-twitter包,但是在conda管理器中找不到兼容的包。我应该如何在conda管理器之外下载该软件包以便稍后在Jupyter笔记本中使用?

3个回答

34
您可以在您的conda环境中安装pip,然后运行"pip install python-twitter" 命令来安装python-twitter库。这样应该可以正常工作。

13
Ubuntu:/$ which pip
/home/superadmin/anaconda2/bin/pip
Ubuntu:/$ /home/superadmin/anaconda2/bin/pip install apache-beam

它起作用了...


10

如果可能的话,您更喜欢使用conda包而不是pip,请首先检查其他渠道:

conda install [--channel | -c] conda-forge

搜索多个渠道:

conda search -c bioconda -c conda-forge

将频道添加到默认搜索中(有关管理优先级顺序,请参见文档):

conda config --add channels conda-forge

一些流行的渠道列在不同conda渠道的解释中。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接