简体   繁体   English

“python3”正在执行“python3.8”而不是“python3.9”

[英]“python3” is executing “python3.8” instead of “python3.9”

I'm using Ubuntu and I just updated my python3 from 3.8 to 3.9 but when I'm running Python3 on terminal it opens the 3.8 version and not the 3.9.我正在使用 Ubuntu,我刚刚将我的 python3 从 3.8 更新到 3.9,但是当我在终端上运行 Python3 时,它会打开 3.8 版本而不是 3.9。
How can I change this?我怎样才能改变这个? thanks a lot.多谢。
python3 --version python3 --版本

You don't.你没有。 python3.8 is a distribution used by other programs on Ubuntu, which expects that dependencies on python3-<package name> install in a way that python3 can import them. python3.8是 Ubuntu 上的其他程序使用的发行版,它期望对python3-<package name>的依赖项以python3可以导入它们的方式安装。 If you change the linkage, any number of (possible important) packages might break.如果您更改链接,任何数量(可能很重要)的包都可能会损坏。 Just use python3.9 explicit.只需使用python3.9显式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 wsl ubuntu 20.04 -&gt; 有 python3.9 和没有 python3.8 - wsl ubuntu 20.04 -> with python3.9 and without python3.8 如何在 mac os x 上将 gunicorn 与 python3.8 而不是 python3.9 一起使用? - How can I use gunicorn with python3.8 instead of python3.9 on mac os x? 我卸载了python3.9并安装了python3.8,现在它显示错误“'pip'不被识别为内部或外部命令” - I uninstall python3.9 and installed python3.8 now it shows error “'pip' is not recognized as an internal or external command” 在 docker 镜像中安装 Python3.9 和 pip(而不是 python 3.8) - Installing Python3.9 and pip in docker image (and not python 3.8) 如何在mac上将python3.9设置为python3的默认值? - How to set Python3.9 the default for python3 on mac? Python3.9中的str格式化 - Str formatting in Python3.9 如何在 Ubuntu 20.04 LTS 中将默认 python3 设置为 python 3.9 而不是 python 3.8 - How to set default python3 to python 3.9 instead of python 3.8 in Ubuntu 20.04 LTS 终端上的 python3 命令运行 python 3.8 而不是 python 3.9 - python3 command on terminal runs python 3.8 not python 3.9 如何通过别名在 Linux 中将默认的 python3 设置为 python3.9? - How to set the default python3 to python3.9 in Linux via aliases? 在 Python3.9 中导入 pg 出错 - Import pg erroring out in Python3.9
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM