Provide a --target option on uninstall (to undo install with --target) #5595
Labels
C: target
pip install's --target option's behaviour handling
state: needs discussion
This needs some more discussion
type: feature request
Request for a new feature
What's the problem this feature will solve?
Currently, there is no clear way to uninstall a package that has been installed to a directory outside sys.prefix using
pip install --target
. Attempting to do so via modifying sys.path results in "Not uninstalling X at Y, outside environment Z"Describe the solution you'd like
Mirror the functionality of
pip install --target
topip uninstall --target
This would enable installing/uninstalling packages to sandboxed directories (similarto a venv, but without the extra baggage), as --target seems to be intended.
Alternative Solutions
While a venv could provide an alternative solution, it is still an issue that there is no 'undo' for the situation where
--target
is used.The text was updated successfully, but these errors were encountered: