Reputation: 2482
Am trying to update pip on EMR notebook, sc.install_pypi_package
seems to install an older version, I also tried
import os
cmd = 'pip install --upgrade pip'
print(os.system(cmd))
but doesn't seem to work
Upvotes: 1
Views: 961
Reputation: 2482
I did it by un-installing and re-installing a newer version
sc.uninstall_package('pip')
sc.install_pypi_package("pip==22.2.2")
Upvotes: 2