在此之前,我的机器上有一个版本的python (python3.10)。
现在,在安装anaconda (不幸地没有工作)之后,我卸载了它,剩下几个与python相关的文件,这是我以前没有的。当我开始输入python时,我看到了它们。
$ pyth
python python3 python3.10 python3.10-config python3.9 python3-config python3-futurize python3-pasteurize pythran pythran-config如何将我在机器上所做的所有安装都提前回滚(比如昨天)。
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.1 LTS
Release: 22.04
Codename: jammy发布于 2022-10-20 15:01:06
这对我有用。
今天安装的软件包列表:
$ grep "2022-10-20.*.install " /var/log/dpkg.log | awk '{ print $4 }' | cut -d: -f1
python3-backcall
python3-decorator
python3-parso
python3-jedi
python3-traitlets
python3-matplotlib-inline
python3-pickleshare
python3-wcwidth
...然后卸载:
$ grep "2022-10-20.*.install " /var/log/dpkg.log | awk '{ print $4 }' | cut -d: -f1 | xargs sudo apt-get --yes purge资料来源:this答案。
https://stackoverflow.com/questions/74141863
复制相似问题