I'm trying to install gifski
on Google Colab:
install.packages("gifski")
library(gifski)
but the following error arises:
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)
So, is it possible to install and use gifski
on Colab?
Thanks!
CodePudding user response:
Documentation: https://gif.ski/
Packages You first need to install the required packages
!apt install ffmpeg
!apt install pngquant
Rust
You then need to install rust on Colab:
!apt install rustc
Gifski
Now we can install gifski, it requires some time (4 min)
!cargo install gifski
Set env path
import sys
sys.path.insert(1, '/root/.cargo/bin')
%set_env PATH=/root/.cargo/bin
check gifski version
!gifski -V