I am trying to run command python –m . but I am getting error as
python: can't open file '–m': [Errno 2] No such file or directory
I am on Ec2 the python version is 2.7
As suggested by @duskwuff, you are using the unicode char en dash –
instead of hyphen -
. Though they look same, they are different chars. Use hyphen instead of en dash.
$ –
-bash: $'\342\200\223': command not found
$ python –m
python: can't open file '–m': [Errno 2] No such file or directory
$ -
-bash: -: command not found
$ python -m
Argument expected for the -m option
usage: python [option] ... [-c cmd | -m mod | file | -] [arg] ...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With