在安装中设置平台和 python 版本需要
Setting both platform and python version in install requires
我有一个 setup.py 文件,我想在 setup.py 中指定安装要求的平台和 python 版本,但此设置不起作用
这是我试过的
install_requires=['pyproj>1.9.5.1;platform_system!="Windows";python_version>"3.4"']
我做不到
setup.py sdist bdist_wheel --universal
无法识别同一行中的两个环境标记
任何想法或建议
使用and
、or
和括号(
)
组合标记:
install_requires=['pyproj>1.9.5.1 ; platform_system != "Windows" and python_version > "3.4"']
我有一个 setup.py 文件,我想在 setup.py 中指定安装要求的平台和 python 版本,但此设置不起作用
这是我试过的
install_requires=['pyproj>1.9.5.1;platform_system!="Windows";python_version>"3.4"']
我做不到
setup.py sdist bdist_wheel --universal
无法识别同一行中的两个环境标记
任何想法或建议
使用and
、or
和括号(
)
组合标记:
install_requires=['pyproj>1.9.5.1 ; platform_system != "Windows" and python_version > "3.4"']