Exorcismus
Exorcismus

Reputation: 2482

How to update pip on EMR notebook

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

Answers (1)

Exorcismus
Exorcismus

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

Related Questions