Python's import situation has driven me to the brink of imsanity
oscar.j.benjamin at gmail.com
Tue Feb 9 19:31:52 EST 2016
On 8 February 2016 at 00:38, <dimva13 at gmail.com> wrote:
> Running python setup.py develop doesn't work, it gives me this error: error: invalid command 'develop'
This is presumably because your setup.py 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 setup.py your actually importing a monkey-patched
setuptools. You may as well import setuptools in your setup.py but
either way the recommended invocation is "pip install -e .".
More information about the Python-list