Reputation: 42465
By default pip installs editable packages into src
subdirectory of the directory where Python is installed.
I'd like to install a package from version control to a directory of my choosing using pip's support for checking out a package from source control, for example:
pip install -e git+https://github.com/kennethreitz/requests.git@355b97165c#egg=requests-org
Is this possible?
Upvotes: 10
Views: 10488
Reputation: 15154
pip help install
says:
--src=DIR, --source=DIR, --source-dir=DIR, --source-directory=DIR
Check out --editable packages into DIR
For example:
pip install -e git+https://github.com/kennethreitz/requests.git@355b97165c#egg=requests-org --source-directory=/tmp
Will install the requests source in /tmp/requests-org
Upvotes: 8