请帮我解决有关删除python目录的问题。当我尝试使用以下命令删除python目录时,我的错误有堆栈跟踪apt-get autoremove python
ImportError: No module named debpython
dpkg: error processing python-pkg-resources (--remove):
subprocess installed pre-removal script returned error exit status 1
Removing python-psutil ...
Traceback (most recent call last):
File "/usr/sbin/update-python-modules", line 16, in <module>
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
答案 0 :(得分:1)
你试过吗
sudo apt-get purge *your-program-name*
这将完全(好吧......几乎)删除你的程序及其库(ies)
希望这有帮助
答案 1 :(得分:0)
嗯,我找到了解决方案,当我使用以下命令时,它对我有用:
$ pip uninstall python