我目前安装了Python 3.8.12。我被建议更新到 3.8.18,因为旧版本存在安全漏洞。我知道在基础环境中更新到更高版本的完整版本是一个坏主意,但肯定可以通过 3.8.x 版本进行更新吗?然而
sudo apt install python3
只返回 python3 is already the newest version (3.10.6-1~22.04)
和 conda update python
只返回
Collecting package metadata (current_repodata.json): - WARNING conda.models.version:get_matcher(556): Using .* with relational operator is superfluous and deprecated and will be removed in a future version of conda. Your spec was 1.7.1.*, but conda is ignoring the .* and treating it as 1.7.1
done
Solving environment: done
# All requested packages already installed.
所以它似乎认为它是完全最新的,但它仍然是几年前的版本。
我遇到了类似的错误,但使用以下命令解决了问题
conda clean --all
conda update conda
#or conda update -n base -c defaults conda