☄️ubuntu 安装不同版本的 python
2023-6-21
| 2023-6-21
0  |  0 分钟
type
status
date
Jun 21, 2023 09:35 AM
slug
summary
tags
category
icon
password
ubuntu 18.04 必须用 source code build 才可以安装 python3.10 后的版本
以我现在的情况# 2023-06-08T19:12:57+0800 , 在 Ubuntu18.04 上默认安装的 python3.6 版本的, 很多情况不能用
尝试升级到 python3.8 ,python3.10, 也就是三个版本后.
  1. 不能把 python3 ln -s 到 python3.8, 要维持原始旧版的. 否则 apt 有问题.
python3.10 -m venv python3.10 python3.8 -m venv python3.8的的方式实现不同版本的 python 调用
使用时, ln -s 到对应的activate 即可.
 
技术折腾
  • 闪念
  • Linux
  • Python
  • 工具
  • raspberry build How To Install Python 3.11 on Ubuntu 22.04|20.04|18.04 | ComputingForGeeks
    目录