"pip install --editable ./" vs "python setup.py develop"

PeterE picture PeterE · May 18, 2015 · Viewed 67.6k times · Source

Is there any significant difference between

pip install -e /path/to/mypackage

and the setuptools variant?

python /path/to/mypackage/setup.py develop

Answer

sobolevn picture sobolevn · May 18, 2015

Try to avoid calling setup.py directly, it will not properly tell pip that you've installed your package.

With pip install -e:

For local projects, the “SomeProject.egg-info” directory is created relative to the project path. This is one advantage over just using setup.py develop, which creates the “egg-info” directly relative the current working directory.

More: docs

Also read the setuptools' docs.