python - 无法使用 anaconda 安装 ggplot

标签 python python-3.x anaconda python-ggplot

(我知道这个问题 Cannot install ggplot with anaconda 但这是针对 Windows 的,而我正在运行 Linux 操作系统)

我正在尝试在 python3 (v3.6.0) Anaconda 环境中安装 ggplot 软件包:

$ conda install ggplot
Fetching package metadata .............


PackageNotFoundError: Package missing in current linux-64 channels: 
  - ggplot

Close matches found; did you mean one of these?

    ggplot: r-ggplot2, r-gplots

如果我使用conda search我得到:

$ conda search ggplot 
Fetching package metadata .............
r-ggplot2                    1.0.0                         0  defaults        
                             1.0.0                        0a  defaults        
                             1.0.1                  r3.2.2_0  defaults        
                             1.0.1                  r3.2.0_0  defaults        
                             1.0.1                  r3.2.1_0  defaults        
                             1.0.1                 r3.2.1_0a  defaults        
                             1.0.1                 r3.2.2_0a  defaults        
                             1.0.1                 r3.2.0_0a  defaults        
                             2.1.0                  r3.3.1_0  defaults        
                             2.2.0                  r3.3.1_0  defaults        
                             2.2.0                  r3.3.2_0  defaults

但是如果我搜索https://anaconda.org/search对于 ggplot 我得到 lots of results .

问题:为什么我在使用 conda search 时看不到这些结果? ggplotr-ggplot2 (当我搜索 ggplot 时它提供安装的软件包)之间有什么区别?

最佳答案

Why am I not seeing those results when using conda search?

搜索的区别在于,conda search 仅在您的 channel 中搜索,anaconda search 或 anaconda.org 上的搜索包括全部(公共(public)) channel 。包名称前面的名称是 channel ,例如xyz/ggplotxyz就是 channel 。

What is the difference between ggplot and r-ggplot2

这可能是一个命名约定。 anacondaseveral R based packages他们很可能使用 r- 前缀将它们与更常规的 python 包分开。因此,如果您不打算将其与“R”一起使用,您可能应该寻找不带 r- 的合适候选者。

关于python - 无法使用 anaconda 安装 ggplot,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43335294/

相关文章:

python-3.x - 将数组作为命令行参数传递给脚本

python - 如何通过OAuth2获取授权 token 并通过http请求读取Outlook邮件?

python - Pyautogui 未导入 "No module named ' pyautogui' "

python - 如何从 Spyder (python) Anaconda 调用 R 代码?

python - 在列表中查找数字并连接 python 中数字之间的所有项目

python - 将行列表转换为列

python - 从 PPTx 文件 (powerpoint) 中提取演示者注释

python - Pandas 组合多个数据透视表

python - 根据共同的第一个元素合并二维列表中的元素

python - 导入错误 : DLL load failed when importing Numpy installed in conda virtual environment