找不到创建conda环境的包,但无法安装它

时间:2017-01-29 04:12:41

标签: r anaconda conda miniconda

如何解决此问题?

balter@exalab3:~$ conda create -n r322 r=3.2.2
Fetching package metadata .........
Solving package specifications: .


PackageNotFoundError: Package not found: '' Dependency missing in current linux-64 channels:
  - r 3.2.2* -> r-base 3.2.2 -> libgcc

Close matches found; did you mean one of these?

    libgcc: libgd, libmagic

You can search for packages on anaconda.org with

    anaconda search -t conda libgcc

balter@exalab3:~$ conda list | grep libgcc
balter@exalab3:~$ conda install libgcc
Fetching package metadata .........
Solving package specifications: .


PackageNotFoundError: Package not found: '' Package missing in current linux-64 channels:
  - libgcc

Close matches found; did you mean one of these?

    libgcc: libgd, libmagic

You can search for packages on anaconda.org with

    anaconda search -t conda libgcc

1 个答案:

答案 0 :(得分:0)

完全披露,这并不能直接解决您列出的问题(冒着风险),但我认为这种解决方法适用于我认为您想要做的事情。

棘手的是, r 语言处于不同的channel。特别是,this看起来像你想要的包。理想情况下,conda create命令可以允许您指定该通道,但它看起来不起作用。相反,您可以尝试创建一个空的环境 - this似乎是推荐的方式 - 然后在该环境中进行安装。换句话说,你可以试试这个:

conda create -n r322 python
source activate r322  
conda install --channel r r=3.3.2