The -e parameter tells pip to install packages in editable mode. "If you remove the -e option, pip installs the package in <venv path>/lib/Python_version/site-packages . Remember to remove the packages inside <venv path>/src , because that first python is looking for packages inside <venv path>/src .
pip supports installation from Git, Mercurial, Subversion and Bazaar and detects the VCS type using the url prefixes: "git +", "hg +", "bzr +", "svn +".
eg
$ pip install -e git+https://git.repo/some_pkg.git#egg=SomePackage # from git $ pip install -e hg+https://hg.repo/some_pkg.git#egg=SomePackage # from mercurial $ pip install -e svn+svn://svn.repo/some_pkg/trunk/
VCS projects can be installed in editable mode (using the -changeable option) or not.
- For editable installations, the default clone location is
<venv path>/src/SomeProject in virtual environments and <cwd>/src/SomeProject for global installations. The –src can be used to change this location. - For non-editable installations, the project is created locally in the temporary directory, and then installed normally. `
source share