Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有点跟进这个...... :)
我的项目仅限 Python 3,我的问题基本上是我如何告诉 distutils/distribute/whoever 这个包仅限 Python 3?
不确定是否有一些特殊设置,但这在 setup.py 的开头可能会有所帮助:
import sys if sys.version_info.major < 3: print("I'm only for 3, please upgrade") sys.exit(1)