Is there a way to uninstall multiple packages with pip?

前端 未结 4 1246
孤城傲影
孤城傲影 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:01

    Redirect the grep output to a new file and run.

     pip uninstall -r 
    

    works I think.

    pip freeze | grep pyobjc > packages_to_remove.txt
    sudo pip uninstall -y -r packages_to_remove.txt
    

提交回复
热议问题