python requirements.txt 里指定操作系统和python版本

在requirements.txt维护可行的版本

在给MetaBCI编写github ci时发现在不同的平台下依赖不尽相同,版本要求不尽相同,在这里记录下

参考https://pip.pypa.io/en/stable/reference/requirement-specifiers/

# ---------------------------------
#  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'
Licensed under CC BY-NC-SA 4.0
最后更新于 2025-05-10 18:26:21
网站总访客数:Loading
网站总访问量:Loading
使用 Hugo 构建
主题 StackJimmy 设计