Is there a way to uninstall multiple packages with pip?

前端 未结 4 1253
孤城傲影
孤城傲影 2020-12-24 12:45

I am attempting to remove all of the installed \"pyobjc-framework\"-prefixed packages. I have tried the following:

% pip freeze | grep pyobjc-framework | xar         


        
4条回答
  •  清歌不尽
    2020-12-24 13:09

    Your command should actually work if you add the -y | --yes flag to pip :-)

    -y, --yes Don't ask for confirmation of uninstall deletions.

    Possibly:

    % pip freeze | grep pyobjc-framework | xargs pip uninstall -y

提交回复
热议问题