Require minimum Python version in

less than 1 minute read

Related: Minimal and setup.cfg

setup.cfg allows fine-grained control of which Python versions are supported. We assume that is like:

from setuptools import setup; setup()

and then the minimum Python version in setup.cfg:

python_requires = >= 3.6

How to install local / development

Install development packages (those that you don’t want a fixed static copy of) by:

python -m pip install -e .


pip install -e .

That is, in general one should install packages (locally, from GitHub, or from PyPi etc.) via pip install and NOT by invoking directly.


Leave a Comment