You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Starting from pip 21.0 the editable format printed by pip freeze can't be sent back to pip uninstall to remove an editable VCS package.
Expected behavior
Be able to remove those packages like it was possible in pip 20.3.4 and earlier.
How to Reproduce
Clone a repo with a python package
Install the package in editable form
Run pip freeze
Try to uninstall from the pip freeze output
Output
$ git clone [email protected]:jcugat/tmp-minimal.gitCloning into 'tmp-minimal'...remote: Enumerating objects: 5, done.remote: Counting objects: 100% (5/5), done.remote: Compressing objects: 100% (3/3), done.remote: Total 5 (delta 0), reused 5 (delta 0), pack-reused 0Receiving objects: 100% (5/5), done.
$ cd tmp-minimal/
$ pip --versionpip 21.0.1 from /Users/josepcugat/.pyenv/versions/3.7.6/envs/tmp-minimal/lib/python3.7/site-packages/pip (python 3.7)
$ pip install -e .Obtaining file:///Users/josepcugat/workspace/tmp-minimalInstalling collected packages: minimal Running setup.py develop for minimalSuccessfully installed minimal
$ pip freeze > requirements.txt
$ cat requirements.txt-e [email protected]:jcugat/tmp-minimal.git@60ec9d641516ce59d5f2f65a5f4163ba8d7af559#egg=minimal
$ pip uninstall -y -r requirements.txtERROR: [email protected]:jcugat/tmp-minimal.git@60ec9d641516ce59d5f2f65a5f4163ba8d7af559#egg=minimal 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).
$ pip install pip==20.3.4Collecting pip==20.3.4 Using cached pip-20.3.4-py2.py3-none-any.whl (1.5 MB)Installing collected packages: pip Attempting uninstall: pip Found existing installation: pip 21.0.1 Uninstalling pip-21.0.1: Successfully uninstalled pip-21.0.1Successfully installed pip-20.3.4
$ pip uninstall -y -r requirements.txtFound existing installation: minimal 0.1Uninstalling minimal-0.1: Successfully uninstalled minimal-0.1
Code of Conduct
I agree to follow the PSF Code of Conduct
I think this is related to the removal in this PR #7554
It's a bit weird that the same format that pip freeze outputs it's considered invalid for pip uninstall.
The text was updated successfully, but these errors were encountered:
pip version
21.0.1
Python version
Python 3.7.6
OS
macOS Catalina
Additional information
No response
Description
Starting from pip 21.0 the editable format printed by
pip freeze
can't be sent back topip uninstall
to remove an editable VCS package.Expected behavior
Be able to remove those packages like it was possible in pip 20.3.4 and earlier.
How to Reproduce
Output
Code of Conduct
I think this is related to the removal in this PR #7554
It's a bit weird that the same format that pip freeze outputs it's considered invalid for pip uninstall.
The text was updated successfully, but these errors were encountered: