dpcs: rm some instances of "sudo pip" recommendations
we should not recommend users to invoke pip with sudo
This commit is contained in:
@@ -4,7 +4,7 @@ import sys
|
|||||||
try:
|
try:
|
||||||
import requests
|
import requests
|
||||||
except ImportError as e:
|
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:
|
def is_dependency_edge_blacklisted(*, parent_pkg: str, dep: str) -> bool:
|
||||||
"""Sometimes a package declares a hard dependency
|
"""Sometimes a package declares a hard dependency
|
||||||
|
|||||||
@@ -171,7 +171,7 @@ class QEAppController(BaseCrashReporter, QObject):
|
|||||||
)
|
)
|
||||||
notification.notify('Electrum', message, app_icon=icon, app_name='Electrum')
|
notification.notify('Electrum', message, app_icon=icon, app_name='Electrum')
|
||||||
except ImportError:
|
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:
|
except Exception as e:
|
||||||
self.logger.error(repr(e))
|
self.logger.error(repr(e))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user