1👍
✅
package 'python3' #will install python
package 'python3-pip' #will install pip3
execute 'pip3 install django' do #install django from command line with pip
not_if "pip3 list | grep django" #only if it is not installed yet
end
execute 'pip3 install gunicorn' do
not_if "pip3 list | grep gunicorn"
end
Source:stackexchange.com