Aug-07-2018, 10:55 AM
@wavic
sylvain@sylvain-HP-Laptop-15-bw0xx:~$ python3 -m pip install click
Requirement already satisfied: click in /usr/lib/python3/dist-packages (0.4.46+17.10.20170607.3.0ubuntu1)
launchpadlib 1.10.5 requires testresources, which is not installed.
You are using pip version 10.0.1, however version 18.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
@Larz click works well on python 2.7
sylvain@sylvain-HP-Laptop-15-bw0xx:~$ python3 -m pip install click
Requirement already satisfied: click in /usr/lib/python3/dist-packages (0.4.46+17.10.20170607.3.0ubuntu1)
launchpadlib 1.10.5 requires testresources, which is not installed.
You are using pip version 10.0.1, however version 18.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
@Larz click works well on python 2.7
#python2 import click click.echo('Do you agree ? [y/n] ', nl=False) c = click.getchar() click.echo() if c == b'y': click.echo('We will go on') elif c == b'n': click.echo('Abort!') exit() else: click.echo('Invalid input ! ') exit() print("sylas")