python - 我可以在 pip 要求文件中添加注释吗?

我想在 pip 需求文件中添加一些包的注释。 (只是为了解释为什么该软件包在列表中。)我可以这样做吗?

我在想象类似的东西

Babel==0.9.5 # translation
CherryPy==3.2.0 # web server
Creoleparser==0.7.1 # wiki formatting
Genshi==0.5.1 # templating

最佳答案

当然可以,只需使用 #

pip docs :

A line that begins with # is treated as a comment and ignored. Whitespace followed by a # causes the # and the remainder of the line to be treated as a comment.

https://stackoverflow.com/questions/9159757/

相关文章:

linux - fuse 错误 : Transport endpoint is not connec

debugging - Linux内核实时调试是如何完成的,使用了哪些工具?

linux - svn over HTTP 代理

python - 如何在 Windows 上找到 Python 的安装位置?

python - Django 设置 ‘SECRET_KEY’ 的目的是什么?

python - 如何在 Python 中将 dos 路径拆分为其组件

linux - 是否在/usr/local/lib 中搜索共享库?

python - 目前在 Python 中进行 RPC 的选择是什么?

python - 从 jinja2 调用 python 函数

linux - 如何检查 X 服务器是否正在运行?