(我知道这个问题 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
时看不到这些结果? ggplot
和 r-ggplot2
(当我搜索 ggplot
时它提供安装的软件包)之间有什么区别?
最佳答案
Why am I not seeing those results when using
conda search
?
搜索的区别在于,conda search
仅在您的 channel 中搜索,anaconda search
或 anaconda.org 上的搜索包括全部(公共(public)) channel 。包名称前面的名称是 channel ,例如xyz/ggplot
,xyz
就是 channel 。
What is the difference between
ggplot
andr-ggplot2
这可能是一个命名约定。 anaconda
有 several R
based packages他们很可能使用 r- 前缀将它们与更常规的 python 包分开。因此,如果您不打算将其与“R”一起使用,您可能应该寻找不带 r-
的合适候选者。
关于python - 无法使用 anaconda 安装 ggplot,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43335294/