Unable to uninstall package named `-umpy`

后端 未结 2 837
予麋鹿
予麋鹿 2021-01-23 07:39

Runnig py -m pip list in windows powershell, produces:

Package         Version
--------------- -------
-umpy           1.15.4
autogui         0.1.8
         


        
2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-23 08:03

    import subprocess
    print((bytes(subprocess.check_output(['pip', 'uninstall', '-umpy'], stderr=subprocess.STDOUT)).decode()))
    

    To automate it in a python script.

提交回复
热议问题