Encourage to install python packages without administrative rights

Using 'sudo pip install' can cause a lot of problems because usually
there are a couple of Python interpreters installed. This fix encourages
developers to use `pip install --user` instead which is safer.
This commit is contained in:
Roland Dobai
2018-09-07 09:14:05 +02:00
parent 5eb452f72e
commit c3d99dd2e4
9 changed files with 9 additions and 19 deletions

View File

@@ -47,7 +47,7 @@ if __name__ == "__main__":
print('The following Python requirements are not satisfied:')
for requirement in not_satisfied:
print(requirement)
print('Please run "{} -m pip install -r {}" for resolving the issue.'.format(sys.executable, args.requirements))
print('Please run "{} -m pip install --user -r {}" for resolving the issue.'.format(sys.executable, args.requirements))
sys.exit(1)
print('Python requirements from {} are satisfied.'.format(args.requirements))