安装 Python 包:“当前 win-64 通道中缺少包”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/38739694/
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
Install Python package: "Package missing in current win-64 channels"
提问by Benni
I want to install GSEApy on Anaconda (I use 64bit Windows 10).
https://bioconda.github.io/recipes/gseapy/README.html
https://anaconda.org/bioconda/gseapy
我想在 Anaconda 上安装 GSEApy(我使用 64 位 Windows 10)。
https://bioconda.github.io/recipes/gseapy/README.html
https://anaconda.org/bioconda/gseapy
But I get this error:
但我收到此错误:
C:\Windows\system32>conda install gseapy
Using Anaconda Cloud api site https:// api.anaconda.org
Fetching package metadata ...........
Solving package specifications: .
Error: Package missing in current win-64 channels:
- gseapy
You can search for packages on anaconda.org with
anaconda search -t conda gseapy
How can I solve this?
我该如何解决这个问题?
回答by Mike Müller
You need to use a channel that has a win-64 version. Use:
您需要使用具有 win-64 版本的频道。用:
conda install -c bioninja gseapy
The option -c
or --channel
allows to specify a channel.
You can also add a channel permanently via:
选项-c
or--channel
允许指定通道。您还可以通过以下方式永久添加频道:
conda config --add channels bioninja
This creates a file .condarc
in your home directory (on Windows C:\Users\<username>
):
这会.condarc
在您的主目录中创建一个文件(在 Windows 上C:\Users\<username>
):
channels:
- bioninja
- defaults
You can modify this file manually. The order of the channels determines their precedence.
您可以手动修改此文件。通道的顺序决定了它们的优先级。
Note: Files with a leading .
might not be displayed
by certain file browsers. You might need to change settings to display these
files accordingly.
注意:.
某些文件浏览器可能不会显示带有前导的文件。您可能需要更改设置以相应地显示这些文件。
You can find out if a package exits for your platform by searching on Anaconda. Just type gseapy
in the search field and you should see the available packages. The column "Platforms" shows if a "win-64" version exists.
您可以通过在Anaconda 上搜索来了解您的平台是否存在软件包。只需gseapy
在搜索字段中输入,您就会看到可用的包。“平台”列显示是否存在“win-64”版本。
回答by Prakhar Agarwal
Check the latest version of Keras from the Anaconda distribution website
从 Anaconda 分发网站查看最新版本的 Keras
https://anaconda.org/search?q=keras
https://anaconda.org/search?q=keras
Use command:
使用命令:
conda install -c conda-forge keras=<version>
回答by maxima
Now you could install lastest gseapy through bioconda, too
现在您也可以通过 bioconda 安装最新的 gseapy
conda install -c bioconda gseapy
回答by Dartagnan
Maybe it need you to specify a detalied version,so you can just find a version support your environment in Anaconda Clound,just a line of command like "conda install -c dhirschfeld protobuf=3.0.0a3.post418+g0cb84ee ",I select this and it works.
也许它需要你指定一个详细的版本,所以你可以在Anaconda Clound中找到一个支持你环境的版本,只需一行命令,比如“conda install -c dhirschfeld protobuf=3.0.0a3.post418+g0cb84ee”,我选择这个它有效。