Ubuntu22.04(和其他所有以前的版本一样)在默认情况下已经安装了Python,实际上,如果我打开终端并键入:Python 3.10.6Package python is not available, but is referred to by another packageHowever the following packages replace it:
2to3 pyth
TL;DR:包安装在pip3下,但在Python3下找不到。为什么?我打开木星-笔记本之后,发现tensorflow没有安装(运行Python3)。我先从终端检查版本,然后卸载tensorflow。它不是安装在pip下(正如预期的那样),但它确实是在pip3下安装的。To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.“
可能是有关联的。我的