Sta*_*son 4 amazon-ec2 python-2.7
我正在尝试运行命令 python –m 。但我收到错误
python: 无法打开文件 '-m': [Errno 2] 没有那个文件或目录
我在 Ec2 上,python 版本是 2.7
正如@duskwuff 所建议的,您使用的是 unicode char en dash–而不是 hyphen -。虽然它们看起来一样,但它们是不同的字符。使用连字符而不是破折号。
$ –
-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] ...
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2944 次 |
| 最近记录: |