在Anaconda上安装Python包mca

2024-10-01 07:39:31 发布

您现在位置:Python中文网/ 问答频道 /正文

在anaconda提示符下,我尝试了conda install mca

而且,基于thisconda install -c davidbgonzalez mca

但我仍然得到这个错误:

PackagesNotFoundError: The following packages are not available from current channels:

  - mca

我使用python 3.6和windows 10


Tags: installthepackages错误notanacondathisconda
3条回答

打开Conda提示符,使用pip install mca代替conda install mca 它很好用。它将安装在您的Conda虚拟环境中。 以下是康达提示:

Collecting mca
  Downloading https://files.pythonhosted.org/packages/7d/2a/6e07182d578514f25877872c2b320f5d6d9eee81d9d397d575c9dc2ae827/mca-1.0.3.tar.gz
Requirement already satisfied: scipy in f:\anaconda\lib\site-packages (from mca) (1.3.1)
Requirement already satisfied: numpy in f:\anaconda\lib\site-packages (from mca) (1.16.5)
Requirement already satisfied: pandas in f:\anaconda\lib\site-packages (from mca) (0.25.1)
Requirement already satisfied: python-dateutil>=2.6.1 in f:\anaconda\lib\site-packages (from pandas->mca) (2.8.0)
Requirement already satisfied: pytz>=2017.2 in f:\anaconda\lib\site-packages (from pandas->mca) (2019.3)
Requirement already satisfied: six>=1.5 in f:\anaconda\lib\site-packages (from python-dateutil>=2.6.1->pandas->mca) (1.12.0)
Building wheels for collected packages: mca
  Building wheel for mca (setup.py) ... done
  Created wheel for mca: filename=mca-1.0.3-py2.py3-none-any.whl size=6007 sha256=1259854a6e8271d85828ea0c3a5732ab84319b99f2e12a60e53a94db33c5f2ea
  Stored in directory: C:\Users\Krishna\AppData\Local\pip\Cache\wheels\01\fb\ff\19d72d65c8bb01d4af40c9c2ca20fd267d1969b3b5f8dd60d6
Successfully built mca
Installing collected packages: mca
Successfully installed mca-1.0.3

因此,我通过运行命令解决了这个问题:

conda config  set channel_priority false.

然后使用命令run继续mca下载:

conda install mca

根据这个(What do the operating system tags mean in the anaconda packages?),操作系统标签显示可以安装包的系统

您要安装的软件包mca只有ljnux-64标记,而您提到您使用的是Windows 10计算机。所以我猜你不能安装它

相关问题 更多 >