Python's import situation has driven me to the brink of imsanity

Oscar Benjamin oscar.j.benjamin at
Tue Feb 9 19:31:52 EST 2016

On 8 February 2016 at 00:38,  <dimva13 at> wrote:
> Running python develop doesn't work, it gives me this error: error: invalid command 'develop'

This is presumably because your script uses distutils rather
than setuptools: distutils doesn't have the develop command.

> Running pip install -e . does work.

That's because pip "injects setuptools" so that when you import
distutils in your your actually importing a monkey-patched
setuptools. You may as well import setuptools in your but
either way the recommended invocation is "pip install -e .".


More information about the Python-list mailing list