Skip to content

Commit

Permalink
Enable pip install if using sudo.
Browse files Browse the repository at this point in the history
  • Loading branch information
amrsoll committed Apr 8, 2021
1 parent ee8648a commit 4706da2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/octoprint/util/pip.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def _setup_pip(self):
# in a virtual environment may we proceed with the --user parameter.

ok, pip_user, pip_virtual_env, pip_install_dir = self._check_pip_setup(pip_command)
if not ok:
if not ok and (not pip_sudo or not pip_install_dir):
self._logger.error("Cannot use pip")
return

Expand Down

0 comments on commit 4706da2

Please sign in to comment.