所以我有 python 3.8 和 pip,但我也想安装稳定的 python 3.7 和 pip。但是当我尝试 sudo apt-get install python3.7
它说包不可用但被引用到另一个包。请帮助错误:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package python3.7 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'python3.7' has no installation candidate
原文由 Vasily Sobolev 发布,翻译遵循 CC BY-SA 4.0 许可协议
我尝试在 Kali Linux 的 官方 docker 镜像中执行以下步骤。它也应该在桌面上工作。
大功告成,python3.7安装完毕。
我尝试使用此安装创建一个 python 虚拟环境。它工作正常。我也能够安装 pip 包。