如何删除/删除Virtualenv(在PowerShell中)?删除 - 项目-Recurse -force .venv失败而失败
但是在Windows:
Remove-Item -Recurse -Force .venv
错误:
Remove-Item : There is a mismatch between the tag specified in the request and the tag present in the reparse point
At line:1 char:1
+ Remove-Item -Recurse -Force .venv
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Remove-Item], Win32Exception
+ FullyQualifiedErrorId : System.ComponentModel.Win32Exception,Microsoft.PowerShell.Commands.RemoveItemCommand
当我查找此问题时,它似乎与无法删除符号链接的PowerShell有关。是否有基于干净的Powershell解决方案来解决此问题?
This question has been asked, but every single answer is bash related: sudo rm -rf venv
just works.
But in Windows:
Remove-Item -Recurse -Force .venv
Error:
Remove-Item : There is a mismatch between the tag specified in the request and the tag present in the reparse point
At line:1 char:1
+ Remove-Item -Recurse -Force .venv
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Remove-Item], Win32Exception
+ FullyQualifiedErrorId : System.ComponentModel.Win32Exception,Microsoft.PowerShell.Commands.RemoveItemCommand
When I look this up it seems to have something to do with PowerShell not being able to delete symbolic links. Is there any clean powershell based solution to deal with this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论