有没有办法指定要与setup.py中定义的python包一起使用的python版本?from distutils.core import setup name = 'macroetym', version = '0.1',
description = 'A tool for macro-etymological textual analy
这里有一个python代码,它应该支持Python 3,但它可能在Python2.7中运行,也可能不运行。例如,这个代码片段可以在Python2.7和Python3中运行。在严格模式下执行和推荐Python 3兼容性的标准方法是什么,即使代码在Python2.7上运行得很好?print('How to throw an exception,and suggest recommendation of python 3 only ?')Python3.5:
可以有多个黑客和异
在使用不受支持的setup.py版本时,我们可以添加什么来防止pip收集和试图安装包呢?Programming Language :: Python :: 3 :: Only$ pip install magicstack Could not find a version that satisfies the requirement magicstack (from versions: )
No matching