Python 在 conda 中找不到安装包
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/44009966/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Installing package not found in conda
提问by Alex T
I'm using python 3.6 as anaconda, and im trying to install python-twitter
package, but there is no package compatible from conda manager. How can i download the package outside conda manager in order to use it later with jupyter notebook?
我使用 python 3.6 作为 anaconda,我正在尝试安装python-twitter
包,但没有与 conda 管理器兼容的包。我如何在 conda manager 之外下载包,以便稍后与 jupyter notebook 一起使用?
回答by Adrien Blanquer
You can install pip
in your conda envand then run pip install python-twitter
.
您可以pip
在conda 环境中安装,然后运行pip install python-twitter
.
It should work.
它应该工作。
回答by vinsent paramanantham
Ubuntu:/$ which pip
/home/superadmin/anaconda2/bin/pip
Ubuntu:/$ /home/superadmin/anaconda2/bin/pip install apache-beam
It worked...
有效...
回答by matt wilkie
If you prefer conda packages over pip where possible, check other channels first with:
如果您在可能的情况下更喜欢 conda 包而不是 pip,请先检查其他频道:
conda install [--channel | -c] conda-forge
Search multiple channels:
搜索多个频道:
conda search -c bioconda -c conda-forge
Add a channel to the default search (see docsfor managing precedence order):
将频道添加到默认搜索(请参阅管理优先顺序的文档):
conda config --add channels conda-forge
Some of the popular channels are listed in Explanation of different conda channels
一些流行的频道列在不同 conda 频道的解释中