如何修复 'error: option --rednose not recognized'

问题:

你想测试 Python 包,例如使用 python setup.py test。但是,你看到以下错误消息:

rednose_error.txt
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
    or: setup.py --help [cmd1 cmd2 ...]
    or: setup.py --help-commands
    or: setup.py cmd --help

error: option --rednose not recognized

解决方案

Rednose 是你需要安装的 Python 包:

install_rednose.sh
pip install -U rednose

Check out similar posts by category: Python