Skip to content

Example from docs for "Installing from VCS" does not work #1509

Closed

Description

@alvassin

Installing from VCS example says, that python3 -m pip install -e SomeProject @ git+https://git.repo/some_pkg.git command should install package in editable mode from VCS.

Tested on Mac Ventura 13.1, on both python versions 3.12 and 3.11:

python3.12 -m venv env12
. env12/bin/activate

python3.12 -m pip install --upgrade pip 
> Requirement already satisfied: pip in ./env12/lib/python3.12/site-packages (24.0)

python3 -m pip install -e aiomisc @ git+https://github.com/aiokitchen/aiomisc.git
> ERROR: Invalid requirement: '@'

What i am doing wrong?

Activity

  1. chrysle commented on Feb 25, 2024

    @chrysle
    Contributor

    You'll need to quote the requirement.

  2. alvassin commented on Feb 25, 2024

    @alvassin
    Author

    Quoting did not help:

    $ pip install -e 'aiomisc @ git+https://github.com/aiokitchen/aiomisc.git'
    ERROR: aiomisc @ git+https://github.com/aiokitchen/aiomisc.git is not a valid editable requirement. It should either be a path to a local project or a VCS URL (beginning with bzr+http, bzr+https, bzr+ssh, bzr+sftp, bzr+ftp, bzr+lp, bzr+file, git+http, git+https, git+ssh, git+git, git+file, hg+file, hg+http, hg+https, hg+ssh, hg+static-http, svn+ssh, svn+http, svn+https, svn+svn, svn+file).

    But this command worked:

    pip install -e git+https://github.com/aiokitchen/aiomisc.git#egg=aiomisc

    What do I miss?

  3. chrysle commented on Feb 25, 2024

    @chrysle
    Contributor

    Ah, it looks like PEP 508 URL-based lookup syntax is not supported for editable requirements right now (see pypa/pip#11951 (comment)). That section is outdated, then.

  4. added
    type: bug
    on Feb 25, 2024
  5. rgommers commented on Nov 10, 2026

    @rgommers
    Contributor

    Ah, it looks like PEP 508 URL-based lookup syntax is not supported for editable requirements right now (see pypa/pip#11951 (comment)). That section is outdated, then.

    This comment was correct when written, however pip introduced support for this in 25.3. And that is now documented at https://pip.pypa.io/en/stable/topics/vcs-support/#editable-vcs-installs. So while the old commands without quoting were always broken, the quoted ones now work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: tutorialstype: bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions