在Anaconda上安装Python软件包mca

时间:2020-02-27 16:30:34

标签: python anaconda

在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

3 个答案:

答案 0 :(得分:1)

打开Conda提示,使用conda install mca代替pip install mca 它工作正常。它会安装在您的Conda虚拟环境本身中。 这是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

答案 1 :(得分:0)

因此,我通过运行以下命令解决了该问题:

conda config --set channel_priority false.

然后使用命令run进行mca下载:

conda install mca

答案 2 :(得分:0)

根据此(What do the operating system tags mean in the anaconda packages?),操作系统标签会显示该软件包可以安装到的系统。

当您提到使用Windows 10计算机时,要安装的软件包mca仅具有ljnux-64标记。所以我想你无法安装