Restricting pip

Hey, I want to restrict the usage of pip from the ui of jupyterhub entirely. Although I have restricted pip globally but user can still install on user lever using !pip install --user, how to prevent this?

Preventing Internet access may be the only way to prevent sufficiently advanced user from using pip.

2 Likes