Miniconda3:在当前 win-32 通道中找不到软件包匹配问题

2024-03-04

我一直在遵循如何安装 Miniconda3 并使用它来安装不同软件包的指南NumPy and SciPy.

然而,安装 Miniconda3 并在 PyCharm 中打开一个新项目后,指南告诉我应该写:

conda install numpy

...返回:

Fetching package metadata: Could not connect to https://repo.continuum.io/pkgs/free/noarch/
Could not connect to https://repo.continuum.io/pkgs/pro/win-32/
Could not connect to https://repo.continuum.io/pkgs/free/win-32/
.Could not connect to https://repo.continuum.io/pkgs/pro/noarch/
...
Error: No packages found in current win-32 channels matching: numpy

You can search for this package on Binstar with

binstar search -t conda numpy

You may need to install the Binstar command line client with

conda install binstar

这让我尝试:

conda install binstar

...这给了我同样的错误(甚至包括最后一行选择我尝试conda install binstar).

我也尝试过,作为参考,使用conda update conda这导致Error: No packages found in current win-32 channels matching: conda.

我在安装到 PATH 变量时添加了 Miniconda。有人对此有任何线索吗?

编辑:我有 32 位系统,并且安装了 32 位版本的 Miniconda。


看起来像conda无法到达软件包存储库,因此您可能存在连接问题(您的防火墙可能会阻止conda,或者也许您在代理后面)。

以下是 3 个解决方法(如果您无法解决网络问题):

1.安装Anaconda而不是Miniconda

你可以安装Anaconda from 连续体 http://continuum.io/downloads网站。与 Miniconda 不同的是,它附带了许多预安装的软件包,例如numpy and scipy.

2. 安装numpy来自预建的 conda 存档

您可以从以下位置手动下载存档包康达存储库 https://anaconda.org/anaconda/repo,并使用以下命令安装它们:

conda install numpy.tar.bz2

您需要下载适合您的操作系统的存档。根据您选择的软件包,您可能会遇到依赖项问题......

3.下载预建的wheel文件

This site http://www.lfd.uci.edu/~gohlke/pythonlibs/1 provides tons of pre-built package for Windows, which are relatively easy to install:

python -m pip install numpy.whl

您应该使用python附带的可执行文件conda(如果您没有多个,那么应该不是问题python您系统上的安装)。

1 I am not the author nor the maintainer of this site, I just find it very useful when you want to install python packages on Windows and cannot use pip/conda.

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Miniconda3:在当前 win-32 通道中找不到软件包匹配问题 的相关文章

随机推荐