python requirements.txt 里指定操作系统和python版本
参考https://pip.pypa.io/en/stable/reference/requirement-specifiers/
1
2
3
4
5
6
7
8
9
10
11
12
# ---------------------------------
# System platform value
# ---------------------------------
# AIX "aix"
# Linux "linux"
# Windows "win32"
# Windows/Cygwin "cygwin"
# MacOS "darwin"
# ---------------------------------
atomac==1.1.0; sys_platform == 'darwin'
futures>=3.0.5; python_version < '3.0'
futures>=3.0.5; python_version == '2.6' or python_version=='2.7'
本文由作者按照 CC BY 4.0 进行授权