如何修复 pip no such option: -U
问题:
你想安装一个 Python 库,例如
pip_wrong_order.sh
pip -U install ansicolors但是库没有安装,你反而看到以下错误消息:
pip_error_output.txt
Usage:
pip <command> [options]
no such option: -U解决方案
你需要将 -U 放在 install 之后:
pip_install_upgrade.sh
pip install -U ansicolorsCheck out similar posts by category:
Python
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow