我尝试在 Docker Ubuntu 18.04 容器下的 R 中安装 Cairo 包。在安装 R Cairo 软件包之前,我在 Ubuntu 中安装了这些软件包:\xe3\x80\x80libgtk2.0-dev、libcairo2-dev、xvfb、xauth、xfonts-base、r-base-dev 和 libxt-dev。
\n\n但是,当我在 R 中安装 Cairo 包时,出现以下错误:
\n\nchecking if R was compiled with the RConn patch... no\nchecking cairo.h usability... yes\nchecking cairo.h presence... yes\nchecking for cairo.h... yes\nchecking for PNG support in Cairo... yes\nchecking for ATS font support in Cairo... no\nconfigure: CAIRO_LIBS=-lfreetype -lz -lpng16 -lz -lcairo -lXext -lXrender -lX11\nchecking for library containing deflate... no\nchecking whether Cairo programs can be compiled... configure: error: Cannot \ncompile a simple …Run Code Online (Sandbox Code Playgroud) 我正在尝试提高 CNN 模型的速度,我使用的方法是删除架构中的一些卷积层,并且模型的准确性与我的数据集几乎保持相同。