我想在Google Colab上安装gifski
:
install.packages("gifski")
library(gifski)
,但是出现以下错误:
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
Warning message in install.packages("gifski"):
“installation of package ‘gifski’ had non-zero exit status”
Error in library(gifski): there is no package called ‘gifski’
Traceback:
1. library(gifski)
那么,在Colab上安装和使用gifski
是可能的吗?
谢谢!
文档:https://gif.ski/
<包/strong>首先需要安装所需的软件包
!apt install ffmpeg
!apt install pngquant
生锈strong>
然后你需要在Colab上安装rust:
!apt install rustc
Gifski
现在我们可以安装gifski了,这需要一些时间(4分钟)
!cargo install gifski
设置env路径
import sys
sys.path.insert(1, '/root/.cargo/bin')
%set_env PATH=/root/.cargo/bin
check gifski version
!gifski -V