setup.py: require a recent version of setuptools before trying to install
问题 I'm creating a package that has 'typing;python_version<"3.5"' in it's install_requires . Apparently, this kind of dependency specification has only been implemented in recent versions of setuptools . If the setuptools on the user's machine is old they'll get: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers; Expected version spec in typing;python_version<"3.5" at ;python_version<"3.5" The easy solution is to tell the users to pip