2
我移植我的项目,以支持Python 3中,它有上SQLite的依赖,所以我在我的requirements.txt如何在requirements.txt中为Python 2(即不是Python 3)指定一个需求?
得到pysqlite
但pysqlite模块没有在Python 3存在(它的内置in),我如何让我的requirements.txt在Python 2和Python 3中都能工作?
我移植我的项目,以支持Python 3中,它有上SQLite的依赖,所以我在我的requirements.txt如何在requirements.txt中为Python 2(即不是Python 3)指定一个需求?
得到pysqlite
但pysqlite模块没有在Python 3存在(它的内置in),我如何让我的requirements.txt在Python 2和Python 3中都能工作?
画中画(PIP为6的)支持environment markers。
要需要pysqlite只蟒蛇< 3,用途:
pysqlite ; python_version < '3'
https://pip.pypa.io/en/stable/reference/pip_install/#requirement-specifiers
对不起,刚才看到你把这个和你是正确的。 – Codexer