||
在R3.6.1版本中,利用install.packages("ggimage")安装ggimage包,出现如下报错信息:
Package Magick++ was not found in the pkg-config search path. Perhaps you should add the directory containing `Magick++.pc' to the PKG_CONFIG_PATH environment variable No package 'Magick++' found Using PKG_CFLAGS= Using PKG_LIBS=-lMagick++-6.Q16
1)查看了对应的pkgconfig目录,未查询到Magick++.pc文件
2)https://cran.r-project.org/web/packages/magick/index.html, ggimage主页提示需要
SystemRequirements: | ImageMagick++: ImageMagick-c++-devel (rpm) or libmagick++-dev (deb) |
3)为此,利用conda进行安装,安装命令如下
conda install -c conda-forge imagemagick
4)成功安装imagemagick后,重新运行install.packages("ggimage"),成功安装
5)library(ggimage)测试,显示一切正常
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-9-1 09:23
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社