1
0

dpcs: rm some instances of "sudo pip" recommendations

we should not recommend users to invoke pip with sudo
This commit is contained in:
SomberNight
2025-06-15 17:57:22 +00:00
parent 95b8af3401
commit 4c9ab617e3
2 changed files with 2 additions and 2 deletions

View File

@@ -4,7 +4,7 @@ import sys
try:
import requests
except ImportError as e:
sys.exit(f"Error: {str(e)}. Try 'sudo python3 -m pip install <module-name>'")
sys.exit(f"Error: {str(e)}. Try 'python3 -m pip install <module-name>'")
def is_dependency_edge_blacklisted(*, parent_pkg: str, dep: str) -> bool:
"""Sometimes a package declares a hard dependency

View File

@@ -171,7 +171,7 @@ class QEAppController(BaseCrashReporter, QObject):
)
notification.notify('Electrum', message, app_icon=icon, app_name='Electrum')
except ImportError:
self.logger.warning('Notification: needs plyer; `sudo python3 -m pip install plyer`')
self.logger.warning('Notification: needs plyer; `python3 -m pip install plyer`')
except Exception as e:
self.logger.error(repr(e))